Skip to content

Commit f7359c0

Browse files
committed
chore: avoid ts syntax highlighting issue in vscode
1 parent 94c63cc commit f7359c0

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

src/compose.ts

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -643,15 +643,13 @@ export const composeHandler = ({
643643
}
644644

645645
if (hasQuery) {
646-
const destructured = <
647-
{
648-
key: string
649-
isArray: boolean
650-
isNestedObjectArray: boolean
651-
isObject: boolean
652-
anyOf: boolean
653-
}[]
654-
>[]
646+
const destructured = [] as {
647+
key: string
648+
isArray: boolean
649+
isNestedObjectArray: boolean
650+
isObject: boolean
651+
anyOf: boolean
652+
}[]
655653

656654
// @ts-ignore
657655
if (validator.query && validator.query.schema.type === 'object') {

0 commit comments

Comments
 (0)