I've just tried this using the starter project they provide in the blog post, and it does catch the error:
The error returned is `Type '"1"' is not assignable to type 'number'.`
The error returned is `Type '"1"' is not assignable to type 'number'.`
On svelte, the typescript error doesn't show up until you manually run svelte-check.