Skip to content

Commit

Permalink
Cli bugfix (#16)
Browse files Browse the repository at this point in the history
bugfix
  • Loading branch information
NathanJAdams authored Oct 29, 2024
1 parent 4926f27 commit 9fe30d6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "json-schema-typescript-generator",
"version": "2.2.0",
"version": "2.2.1",
"author": {
"name": "Nathan Adams",
"url": "https://github.com/NathanJAdams"
Expand Down
4 changes: 2 additions & 2 deletions src/cli/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ program
}
},
ts: {
optionalFields: opts.optionalFieldPattern as OptionalFieldPattern,
untyped: opts.untypedType as UntypedType
optionalFields: OptionalFieldPattern[opts.optionalFieldPattern as keyof typeof OptionalFieldPattern],
untyped: UntypedType[opts.untypedType as keyof typeof UntypedType]
}
};
await generateFiles(options);
Expand Down

0 comments on commit 9fe30d6

Please sign in to comment.