Skip to content

Commit

Permalink
Merge pull request marcelodolza#146 from ZSkycat/patch-types
Browse files Browse the repository at this point in the history
fix merge error
  • Loading branch information
marcelodolza authored Jun 25, 2018
2 parents 5613aaa + 37185a2 commit 8680100
Showing 1 changed file with 17 additions and 16 deletions.
33 changes: 17 additions & 16 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -265,24 +265,25 @@ export interface IziToastProgress {
start(): void;
}

+export interface IziToast {
/**
* Sets default values.
* @param settings Settings to set as default.
*/
settings(settings: IziToastSettings): void;
/**
* Destroys all toasts.
*/
destroy(): void;
/**
* Opens the toast.
*/
show(settings: IziToastSettings): void;
/**
export interface IziToast {
/**
* Sets default values.
* @param settings Settings to set as default.
*/
settings(settings: IziToastSettings): void;
/**
* Destroys all toasts.
*/
destroy(): void;
/**
* Opens the toast.
* @returns Returns false if toast can not be opened.
*/
show(settings: IziToastSettings): void | boolean;
/**
* Closes the specific toast.
* @param settings Settings for this toast.
* @param toast Toast element to hide.
* @param toast Toast element or selector to hide.
* @param closedBy Custom closed by info to use in other functions.
*/
hide(settings: IziToastSettings, toast: HTMLDivElement | string, closedBy: string): void;
Expand Down

0 comments on commit 8680100

Please sign in to comment.