Skip to content

Commit

Permalink
updated types with new icon callback type defs. shakee93#57
Browse files Browse the repository at this point in the history
  • Loading branch information
shakee93 committed Dec 8, 2018
1 parent 972e3df commit a03cc40
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ interface ToastObject {
type ToastPosition = 'top-right' | 'top-center' | 'top-left' | 'bottom-right' | 'bottom-center' | 'bottom-left'
type ToastType = 'success' | 'info' | 'error' | 'default'
type ToastTheme = 'primary' | 'outline' | 'bubble'
type ToastIconPack = 'material' | 'fontawesome' | 'custom-class'
type ToastIconPack = 'material' | 'fontawesome' | 'custom-class' | 'callback'

interface ToastAction {
/**
Expand Down Expand Up @@ -78,7 +78,7 @@ interface ToastOptions {
/**
* Material icon name as string
*/
icon?: string | { name: string, after: boolean },
icon?: (ToastIcon: HTMLElement) => HTMLElement | string | { name: string, after: boolean },
/**
* Type of the Toast ['success', 'info', 'error']. (default: 'default')
*/
Expand Down

0 comments on commit a03cc40

Please sign in to comment.