Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ajaaym committed Nov 9, 2018
1 parent 107b37f commit f40efa8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/generator/generator.ts
Expand Up @@ -50,7 +50,9 @@ function getObjectType(item: SchemaItem): string {
const fields = item.properties;
const objectType =
Object.keys(fields)
.map(field => `${cleanPropertyName(field)}?: ${getType(fields[field])};`)
.map(
field =>
`${cleanPropertyName(field)}?: ${getType(fields[field])};`)
.join(' ');
return `{ ${objectType} }`;
} else {
Expand Down

0 comments on commit f40efa8

Please sign in to comment.