fullturbodev
TTCTheo's Typesafe Cult
•Created by PhilMetall Alchemist on 2/14/2024 in #questions
Importing a generic const array is generating null pointer on build, but no compile error.
Also, BingoElement is used only as a type here as far as I can see, so should be imported as a type, like
import type { BingoElement } from …
6 replies
TTCTheo's Typesafe Cult
•Created by PhilMetall Alchemist on 2/14/2024 in #questions
Importing a generic const array is generating null pointer on build, but no compile error.
It should work. Honestly, I would start by restarting ts server in vscode or restarting vscode itself 🙂 do you get the same if you use shorthand syntax for typing arrays?
export const blah: BingoElement[] = …
6 replies