#VS Code not happy with `satisfies`

17 messages · Page 1 of 1 (latest)

feral comet
#

Hey, started a new project and VS Code is showing an error when I use the satisfies keyword. I'm on typescript 4.9.4, VS Code typescript version has been tested with workspace version (4.9.4) and with latest (5.0.0-dev20230123) and both have the same error:

';' expected.ts(1005)
Cannot find name 'satisfies'.ts(2304)

Any ideas?

alpine hound
#

o_O very odd indeed

#

because it is a 4.9 feature

#

maybe it's typescript-eslint that's erroring?

#

wait no

#

it's a ts(XXXX) error... very odd

#

are you using angular or svelte or something like that

#

or maybe deno (although it doesn't look like it's deno, and deno supports it nowadays for sure)

feral comet
#

oh I'm going mad

#

its a type definition haha

alpine hound
#

oh

#

of course

feral comet
#

whoops

alpine hound
#

i dont know how i didnt see it either

feral comet
#

I'd like to claim it's too early in the morning but its almost noon

alpine hound
#

lmao

#

!close