Closed Coobaha closed 3 years ago
I don't understand, why do you think it's buggy?
For some reason it narrows down the type without undefined
(and i believe nulls too).
notice that dddd
can be undefined, but in .svelte
files this weird narrowing happens and let test: string = ctx.dddd
is valid in IDE
Ah I didn't spot two errors, thanks for clarification
Verified to work in v0.21.0
(Please make sure strictNullChecks
are enabled.
Hi @tomblachut ! Thanks for this awesome plugin! I've noticed that ts type checking is buggy with this snippet
Vscode