Closed
Description
TS and JS Grammar Extension version: 0.0.55 / latest
Code
// Please include a code snippet that demonstrates the issue
// this is similar to apollo-client's `useQuery` but simplified for the repro
function useQuery<TData, TVariables>(_vars: TVariables, _data: TData) {
console.log('hello world')
}
export type UseQuery<TData, TVariables> = typeof useQuery<TData, TVariables>
Note the last >
- it's red.
This syntax is valid. I believe it's valid as of TS 4.7, from microsoft/TypeScript#47607 .
I've also confirmed that the bug still happens for cases where there's only 1 generic parameter.
Metadata
Metadata
Assignees
Labels
No labels