From 0514ebe826bf51db325ecb65733fc44248f6055d Mon Sep 17 00:00:00 2001 From: Arthur Fiorette Date: Mon, 17 Feb 2025 11:32:24 -0300 Subject: [PATCH] description --- src/TypeFormatter/UnknownTypeFormatter.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/TypeFormatter/UnknownTypeFormatter.ts b/src/TypeFormatter/UnknownTypeFormatter.ts index da818ca9d..2ed2b1e42 100644 --- a/src/TypeFormatter/UnknownTypeFormatter.ts +++ b/src/TypeFormatter/UnknownTypeFormatter.ts @@ -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 []; } }