Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurfiorette committed Feb 17, 2025
1 parent 2fa0e6d commit 38a2fbb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/NodeParser/UnknownTypeNodeParser.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import ts from "typescript";
import type { Context } from "../NodeParser.js";
import type { SubNodeParser } from "../SubNodeParser.js";
import type { BaseType } from "../Type/BaseType.js";
import { UnknownType } from "../Type/UnknownType.js";
Expand All @@ -8,7 +7,8 @@ export class UnknownTypeNodeParser implements SubNodeParser {
public supportsNode(node: ts.KeywordTypeNode): boolean {
return node.kind === ts.SyntaxKind.UnknownKeyword;
}
public createType(node: ts.KeywordTypeNode, context: Context): BaseType {
return new UnknownType();

public createType(): BaseType {
return new UnknownType(false);
}
}

0 comments on commit 38a2fbb

Please sign in to comment.