WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 1554258

Browse files
authored
chore: update the Type.toString to support output auto (#2879)
1 parent dfc8a65 commit 1554258

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/types.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -653,6 +653,9 @@ export class Type {
653653
}
654654
}
655655
}
656+
if (this == Type.auto) {
657+
return "auto";
658+
}
656659
return this.kindToString();
657660
}
658661

0 commit comments

Comments
 (0)