Skip to content

Commit

Permalink
Merge pull request #105 from qw3ry/master
Browse files Browse the repository at this point in the history
Better typing for the `register` function
  • Loading branch information
shakee93 committed Jan 29, 2019
2 parents 50d66a1 + e04dcc5 commit d9ac39c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/index.d.ts
Expand Up @@ -144,7 +144,7 @@ interface Toasted {
* @param message
* @param options
*/
register (name: string, message: string, options?: ToastOptions): void
register (name: string, message: string | ((payload: any) => string), options?: ToastOptions): void

/**
* Clear all toasts
Expand Down

0 comments on commit d9ac39c

Please sign in to comment.