Skip to content

Commit 9bec7b0

Browse files
committed
Improve typings
1 parent 58597e1 commit 9bec7b0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export interface SvelteToastOptions {
3333
dismissable?: boolean
3434
reversed?: boolean
3535
intro?: FlyParams
36-
theme?: { [key: string]: string }
36+
theme?: { [key: string]: string | number }
3737
classes?: string[]
3838
component?: {
3939
src: typeof SvelteComponent
@@ -54,5 +54,5 @@ declare namespace toast {
5454
export function pop(arg?: any): void
5555
export function set(id: number, options?: SvelteToastOptions): void
5656
export function set(options: SvelteToastOptions): void
57-
export function subscribe(run: Subscriber): Unsubscriber
57+
export function subscribe(run: Subscriber<any>): Unsubscriber
5858
}

0 commit comments

Comments
 (0)