How can I use branch code based on TypeScript types in Svelte?
Similar to Typescript: How to branch based on type but this is using Svelte, I am already using run-time type guards per that answer, and Svelte is still throwing errors. I have an array named collectablesInFolders, of type Collectable | Folder. Folders have a folderName property. Collectables don’t have a folderName. I have a runtime… Read More How can I use branch code based on TypeScript types in Svelte?