I’m currently writing some TypeScript, (in MakeCode Arcade obviously) and it currently isn’t but I plan on it becoming an extension. It appears that throw new Error(); is not supported, as Error isn’t defined. What are the options available to alert people to runtime errors?
If this style of writing extensions isn’t commonly done, I’m open on other ways to structure my extension. (It’s something (that may or may never get released, who knows) that parses images with a specific format, and if the dev pastes in the wrong type of image, or the format is unsupported, or bad values in parsing, I want to throw an error.)