Svelte-TypeScript-WebPack-Starter icon indicating copy to clipboard operation
Svelte-TypeScript-WebPack-Starter copied to clipboard

TypeScript "main" or also TypeScript components?

Open kylecordes opened this issue 5 years ago • 0 comments

Hello, and thank you for publishing this.

One question sticks out though, and perhaps could be answered in the README:

Is the starter set up to offer TypeScript support only in the "main" and associated .ts files? Or is it also set up to offer TypeScript in the code inside of Svelte components? I could determine this experimentally if needed of course... but it seems for the sake of the next person to come along, having the answer sitting here would be good.

Incidentally, if it does support TypeScript in the components, I suggest adding a handful of conspicuous types to the component included in the repo:

https://github.com/brakmic/Svelte-TypeScript-WebPack-Starter/blob/master/src/app/components/main/main.sve

The script section of this component currently has no types... but of course TypeScript code sometimes has no types, relying on type inference to produce great value even without any explicit types.

kylecordes avatar Aug 16 '18 03:08 kylecordes