Skip to content

Commit

Permalink
Reset clone state on generate
Browse files Browse the repository at this point in the history
  • Loading branch information
sinclairzx81 committed Apr 16, 2023
1 parent b717629 commit 3386b22
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/typescript/typescript-to-typebox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,7 @@ export namespace TypeScriptToTypeBox {
typeNames.clear()
useImports = false
useGenerics = false
useTypeClone = false
const source = ts.createSourceFile('types.ts', typescriptCode, ts.ScriptTarget.ESNext, true)
const declarations = Formatter.Format([...Visit(source)].join('\n\n'))
const imports = ImportStatement(options)
Expand Down

0 comments on commit 3386b22

Please sign in to comment.