Skip to content

Commit

Permalink
fix: weird bug
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurfiorette committed Jan 27, 2025
1 parent d15bc2f commit 782ac82
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/NodeParser/TypeReferenceNodeParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import { AnyType } from "../Type/AnyType.js";
import { ArrayType } from "../Type/ArrayType.js";
import type { BaseType } from "../Type/BaseType.js";
import { StringType } from "../Type/StringType.js";
import { UnknownType } from "../Type/UnknownType.js";
import { symbolAtNode } from "../Utils/symbolAtNode.js";

const invalidTypes: Record<number, boolean> = {
Expand Down Expand Up @@ -46,7 +45,7 @@ export class TypeReferenceNodeParser implements SubNodeParser {
}

if (typeSymbol.flags & ts.SymbolFlags.TypeParameter) {
return context.getArgument(typeSymbol.name) || new UnknownType();
return context.getArgument(typeSymbol.name);
}

// Wraps promise type to avoid resolving to a empty Object type.
Expand Down

0 comments on commit 782ac82

Please sign in to comment.