Skip to content

Commit ec290b6

Browse files
committed
chore: avoid ts syntax highlighting issue in vscode
1 parent 9ab72e8 commit ec290b6

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
@@ -626,15 +626,13 @@ export const composeHandler = ({
626626
}
627627

628628
if (hasQuery) {
629-
const destructured = <
630-
{
631-
key: string
632-
isArray: boolean
633-
isNestedObjectArray: boolean
634-
isObject: boolean
635-
anyOf: boolean
636-
}[]
637-
>[]
629+
const destructured = [] as {
630+
key: string
631+
isArray: boolean
632+
isNestedObjectArray: boolean
633+
isObject: boolean
634+
anyOf: boolean
635+
}[]
638636

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

0 commit comments

Comments
 (0)