Skip to content

Commit 363a612

Browse files
committed
Fix: docs string[]
1 parent 0102e21 commit 363a612

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

docs/.vitepress/theme/use/useMeta.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,9 @@ export function useMeta(ignoreFetch = false) {
8585

8686
// String
8787
if (types[0].startsWith('string')) {
88-
return ['string'];
88+
console.log(types[0]);
89+
90+
return [types[0]];
8991
}
9092

9193
// Number
@@ -190,6 +192,10 @@ export function useMeta(ignoreFetch = false) {
190192
return 'boolean';
191193
}
192194

195+
if (t === 'boolean[]') {
196+
return 'boolean';
197+
}
198+
193199
if (t === 'number') {
194200
return 'boolean';
195201
}

0 commit comments

Comments
 (0)