Skip to content

Commit 1eba502

Browse files
authored
Merge branch 'next' into 1441-add-global-locale
2 parents 9177b99 + de47aaa commit 1eba502

File tree

6 files changed

+93
-39
lines changed

6 files changed

+93
-39
lines changed

.editorconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,4 @@ trim_trailing_whitespace = true
99
insert_final_newline = true
1010

1111
[*.md]
12-
max_line_length = off
1312
trim_trailing_whitespace = false

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@
112112
"glob": "~9.3.2",
113113
"npm-run-all": "~4.1.5",
114114
"picocolors": "~1.0.0",
115-
"prettier": "2.8.4",
115+
"prettier": "2.8.7",
116116
"prettier-plugin-organize-imports": "~3.2.2",
117117
"react": "~18.2.0",
118118
"react-dom": "~18.2.0",

pnpm-lock.yaml

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scripts/apidoc/signature.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,17 @@ function typeToText(type_?: Type, short = false): string {
304304

305305
case 'reference':
306306
if (!type.typeArguments || !type.typeArguments.length) {
307-
return type.name;
307+
const reflection = type.reflection as DeclarationReflection | undefined;
308+
const reflectionType = reflection?.type;
309+
if (
310+
(reflectionType?.type === 'literal' ||
311+
reflectionType?.type === 'union') &&
312+
!type.name.match(/Char$/)
313+
) {
314+
return typeToText(reflectionType, short);
315+
} else {
316+
return type.name;
317+
}
308318
} else if (type.name === 'LiteralUnion') {
309319
return [
310320
typeToText(type.typeArguments[0], short),

0 commit comments

Comments
 (0)