Skip to content

Commit

Permalink
initial promise support
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurfiorette committed Apr 16, 2024
1 parent 717bb1a commit 68b6c0b
Show file tree
Hide file tree
Showing 8 changed files with 7,189 additions and 6 deletions.
2 changes: 2 additions & 0 deletions factory/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ import { UndefinedTypeNodeParser } from "../src/NodeParser/UndefinedTypeNodePars
import { UnionNodeParser } from "../src/NodeParser/UnionNodeParser";
import { UnknownTypeNodeParser } from "../src/NodeParser/UnknownTypeNodeParser";
import { VoidTypeNodeParser } from "../src/NodeParser/VoidTypeNodeParser";
import { PromiseNodeParser } from "../src/NodeParser/PromiseNodeParser";
import { SubNodeParser } from "../src/SubNodeParser";
import { TopRefNodeParser } from "../src/TopRefNodeParser";

Expand Down Expand Up @@ -122,6 +123,7 @@ export function createParser(program: ts.Program, config: Config, augmentor?: Pa
.addNodeParser(new LiteralNodeParser(chainNodeParser))
.addNodeParser(new ParenthesizedNodeParser(chainNodeParser))

.addNodeParser(new PromiseNodeParser(typeChecker, chainNodeParser))
.addNodeParser(new TypeReferenceNodeParser(typeChecker, chainNodeParser))
.addNodeParser(new ExpressionWithTypeArgumentsNodeParser(typeChecker, chainNodeParser))
.addNodeParser(new IndexedAccessTypeNodeParser(typeChecker, chainNodeParser))
Expand Down
Loading

0 comments on commit 68b6c0b

Please sign in to comment.