Skip to content

Commit b9bfb93

Browse files
committed
fix import type
1 parent c9e2a94 commit b9bfb93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/svelte/src/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ export class SvelteComponent<
113113
* you export a component called `MyComponent`. For Svelte+TypeScript users,
114114
* you want to provide typings. Therefore you create a `index.d.ts`:
115115
* ```ts
116-
* import { Component } from "svelte";
116+
* import type { Component } from "svelte";
117117
* export declare const MyComponent: Component<{ foo: string }> {}
118118
* ```
119119
* Typing this makes it possible for IDEs like VS Code with the Svelte extension

0 commit comments

Comments
 (0)