We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c9e2a94 commit b9bfb93Copy full SHA for b9bfb93
packages/svelte/src/index.d.ts
@@ -113,7 +113,7 @@ export class SvelteComponent<
113
* you export a component called `MyComponent`. For Svelte+TypeScript users,
114
* you want to provide typings. Therefore you create a `index.d.ts`:
115
* ```ts
116
- * import { Component } from "svelte";
+ * import type { Component } from "svelte";
117
* export declare const MyComponent: Component<{ foo: string }> {}
118
* ```
119
* Typing this makes it possible for IDEs like VS Code with the Svelte extension
0 commit comments