Skip to content

Commit 2b1c2cd

Browse files
committed
chore: avoid ts syntax highlighting issue in vscode
1 parent 353efd2 commit 2b1c2cd

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
@@ -678,15 +678,13 @@ export const composeHandler = ({
678678
}
679679

680680
if (hasQuery) {
681-
const destructured = <
682-
{
683-
key: string
684-
isArray: boolean
685-
isNestedObjectArray: boolean
686-
isObject: boolean
687-
anyOf: boolean
688-
}[]
689-
>[]
681+
const destructured = [] as {
682+
key: string
683+
isArray: boolean
684+
isNestedObjectArray: boolean
685+
isObject: boolean
686+
anyOf: boolean
687+
}[]
690688

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

0 commit comments

Comments
 (0)