Skip to content

Commit

Permalink
fix typo in generator
Browse files Browse the repository at this point in the history
  • Loading branch information
weinand committed Nov 19, 2020
1 parent bf6ca47 commit 7c6773e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec-generator/generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ function Enum(typeName: string, definition: P.StringType): string {

function _Enum(typeName: string, definition: P.StringType): string {
const x = enumAsOrType(definition._enum, true);
limit return breakLines(`${indent()}export type ${typeName} = ${x};`, ' | ', ` | `) + `\n`;
return breakLines(`${indent()}export type ${typeName} = ${x};`, ' | ', ` | `) + `\n`;
}

function enumAsOrType(enm: string[], open = false) {
Expand Down

0 comments on commit 7c6773e

Please sign in to comment.