From 16371fe436c67492cc80562cca78002bd08766e1 Mon Sep 17 00:00:00 2001 From: Congcong Cai Date: Sun, 27 Oct 2024 11:34:22 +0800 Subject: [PATCH] chore: update the Type.toString to support output auto --- src/types.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/types.ts b/src/types.ts index ecfecd5b5f..695b415b26 100644 --- a/src/types.ts +++ b/src/types.ts @@ -653,6 +653,9 @@ export class Type { } } } + if (this == Type.auto) { + return "auto"; + } return this.kindToString(); }