Skip to content

Commit 9ad542b

Browse files
committed
Add definition for classes
1 parent 9ff804e commit 9ad542b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/index.d.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ declare module '@zerodevx/svelte-toast'
1515
* dismissable: true, // allow dismiss with close button
1616
* reversed: false, // insert new toast to bottom of stack
1717
* intro: { x: 256 }, // toast intro fly animation settings
18-
* theme: {} // css var overrides
18+
* theme: {}, // css var overrides
19+
* classes: [] // user-defined classes
1920
* }
2021
* ```
2122
*/
@@ -32,6 +33,7 @@ export interface SvelteToastOptions {
3233
reversed?: boolean
3334
intro?: FlyParams
3435
theme?: { [key: string]: string }
36+
classes?: string[]
3537
component?: {
3638
src: typeof SvelteComponent
3739
props?: { [key: string]: any }

0 commit comments

Comments
 (0)