-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Description
Describe the bug
This code appears in a d.ts file on DefinitelyTyped, but fails to parse.
Input code
assertType<<K>(key: K) => K>(foo);Config
{
"jsc": {
"parser": {
"syntax": "typescript",
"tsx": true
},
"target": "es2022",
"transform": {
"useDefineForClassFields": true,
"react": {
"importSource": "https://esm.sh/preact",
"runtime": "automatic"
}
},
"loose": false
},
"module": {
"type": "es6"
},
"minify": false,
"isModule": true
}Playground link
Expected behavior
Parses.
Actual behavior
Doesn't parse!
Version
1.3.44
Additional context
No response