Skip to content

Commit 230a33b

Browse files
Added config for angular2 template
1 parent 1809782 commit 230a33b

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

templates/angular2/config.js

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
module.exports = {
2+
// Templates file
3+
apiFile: 'api.ts',
4+
modelFile: 'model.ts',
5+
enumModelFile: 'enumModel.ts',
6+
7+
// Types mapping from 'OpenAPI' to the language template
8+
typesMapped: {
9+
default: 'any',
10+
empty: 'void',
11+
array: 'any[]',
12+
boolean: 'boolean',
13+
file: 'File',
14+
integer: 'number',
15+
number: 'number',
16+
object: 'any',
17+
string: 'string',
18+
},
19+
};

0 commit comments

Comments
 (0)