storyblok / storyblok-svelte

Svelte SDK for Storyblok CMS
MIT License
83 stars 12 forks source link

Typescript errors and missing type declarations #117

Closed blindfish3 closed 1 year ago

blindfish3 commented 2 years ago

There are multiple typescript errors being reported when I run svelte-check in a project that imports from @storyblok/svelte. For example in @storyblok/svelte/index.ts the following are obviously problematic:

let storyblokApiInstance: StoryblokClient = null;
// ...
let componentsMap: SbSvelteComponentsMap = null;

There's also a hint: "Could not find a declaration file for module './StoryblokComponent.svelte'."

josefineschaefer commented 1 year ago

With the PR #489, the execution of svelte-check should run smoothly now :) Test by running npm run check. Let us know if the issue is still occuring?