mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-13 08:57:26 +08:00
19 lines
442 B
TypeScript
19 lines
442 B
TypeScript
// Type definitions for notyf 2.0
|
|
// Project: https://github.com/caroso1222/notyf
|
|
// Definitions by: Pavel Gurov <https://github.com/gurov>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
interface Options {
|
|
delay?: number;
|
|
alertIcon?: string;
|
|
confirmIcon?: string;
|
|
}
|
|
|
|
declare class Notyf {
|
|
constructor(options?: Options);
|
|
|
|
alert(text: string): void;
|
|
confirm(text: string): void;
|
|
}
|
|
export = Notyf;
|