with a *huge* assist from Svelte’s https://www.npmjs.com/package/@sveltejs/acorn-typescript here