Skip to content

Commit 941921e

Browse files
authored
(docs) add import statement
closes #1833
1 parent c614a23 commit 941921e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/preprocessors/typescript.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,8 @@ Then make sure that `d.ts` file is referenced in your `tsconfig.json`. If it rea
179179
If the typings are related to special attributes/events related to an action that is applied on the same element, you can instead type the action in a way that is picked up by the tooling:
180180

181181
```ts
182+
import type { ActionReturn } from 'svelte/action';
183+
182184
interface Attributes {
183185
newprop?: string;
184186
'on:event': (e: CustomEvent<boolean>) => void;

0 commit comments

Comments
 (0)