Skip to content

Commit

Permalink
description
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurfiorette committed Feb 17, 2025
1 parent 6f776af commit 0514ebe
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/TypeFormatter/UnknownTypeFormatter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,16 @@ export class UnknownTypeFormatter implements SubTypeFormatter {
public supportsType(type: BaseType): boolean {
return type instanceof UnknownType;
}

public getDefinition(type: UnknownType): Definition {
if (type.erroredSource) {
return { description: "Failed to correctly generate type" };
}

return {};
}
public getChildren(type: UnknownType): BaseType[] {

public getChildren(): BaseType[] {
return [];
}
}

0 comments on commit 0514ebe

Please sign in to comment.