Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typescript support #16

Open
Infinity-Studios-Software opened this issue Sep 9, 2024 · 1 comment
Open

Typescript support #16

Infinity-Studios-Software opened this issue Sep 9, 2024 · 1 comment

Comments

@Infinity-Studios-Software
Copy link

Infinity-Studios-Software commented Sep 9, 2024

Can you provide typescript support for this package? I can't use

import SvelteFC, { fcRoot } from 'svelte-fusioncharts';

as the compiler wont let me go through. Is this an issue for everyone with checkJS true in the compiler options or am i doing something wrong? The error i get is the following:

Could not find a declaration file for module 'svelte-fusioncharts'. '/Users/afonsopereira/Desktop/leipt/node_modules/svelte-fusioncharts/index.js' implicitly has an 'any' type.
Try npm i --save-dev @types/svelte-fusioncharts if it exists or add a new declaration (.d.ts) file containing declare module 'svelte-fusioncharts';

@myanalysis
Copy link

I am starting new project with Svelte 5. I can not get to run. Is this the same issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants