From 9aaea3ef3a4fd90a5f28a4d08ae9555aad29a649 Mon Sep 17 00:00:00 2001 From: kakasoo Date: Sun, 19 Mar 2023 18:09:29 +0900 Subject: [PATCH] fix : Too long return type fails to generate SDK #282 - ts.TypeFormatFlags.NoTruncation apply - I don't know how to test it work correctly, so I need your help. --- packages/sdk/src/analyses/ImportAnalyzer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/sdk/src/analyses/ImportAnalyzer.ts b/packages/sdk/src/analyses/ImportAnalyzer.ts index 63fe05561..a3a0ff5e3 100644 --- a/packages/sdk/src/analyses/ImportAnalyzer.ts +++ b/packages/sdk/src/analyses/ImportAnalyzer.ts @@ -73,7 +73,7 @@ export namespace ImportAnalyzer { const symbol: ts.Symbol | undefined = type.aliasSymbol || type.getSymbol(); if (symbol === undefined) - return checker.typeToString(type, undefined, undefined); + return checker.typeToString(type, undefined, ts.TypeFormatFlags.NoTruncation); // UNION OR INTERSECT else if ( type.aliasSymbol === undefined &&