ivanhofer / sveltekit-typescript-showcase

This repository shows how Svelte and SvelteKit work together with TypeScript.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

endpoint types and npm ci

cognominal opened this issue · comments

I am trying to use the endpoint example.
Inspecting the source of svelte-kit It seems that to generate the types, one needs to run npm ci.
At least this the way I used to successfully generate the files.
It should probably mentioned.

I run into other mistakes. I have yet to need to read your doc to solve them.
I will keep you posted.

image

Thanks for your show case. It helps.

Types are generated when you run either svelte-kit dev or svelte-kit build. Alternatively, you can just do npx svelte-kit sync.

More here: sveltejs/kit#4165

Thanks @ambiguous48 for your comment.

@cognominal I have updated the examples to mention this

Thanks.
I don't know where is the script svelte-kit (not in my PATH)) but npm run prepare calls it allright to sync.

Thx for your quick answer in 771811a

Thanks for letting me know about the missing description! I hope that its now more clear how this process works