Skip to content

Commit 274d444

Browse files
authored
Add type definition to intro option (#19)
1 parent 234f6f0 commit 274d444

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/index.d.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// index.d.ts
22
import type { SvelteComponent } from 'svelte'
3+
import type { FlyParams } from 'svelte/types/runtime/transition/index'
34

45
declare module '@zerodevx/svelte-toast'
56

@@ -15,15 +16,15 @@ declare module '@zerodevx/svelte-toast'
1516
* intro: { x: 256 }, // toast intro fly animation settings
1617
* theme: {} // css var overrides
1718
* }
18-
```
19+
* ```
1920
*/
2021
export interface SvelteToastOptions {
2122
duration: number
2223
dismissable: boolean
2324
initial: number
2425
progress: number
2526
reversed: boolean
26-
intro: any
27+
intro: FlyParams
2728
theme: { [key: string]: string }
2829
}
2930

0 commit comments

Comments
 (0)