diff --git a/notie/notie.d.ts b/notie/notie.d.ts new file mode 100644 index 000000000..f8b6786b8 --- /dev/null +++ b/notie/notie.d.ts @@ -0,0 +1,10 @@ +// Type definitions for notie.js +// Project: https://github.com/jaredreich/notie.js +// Definitions by: Mateus Demboski +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +declare var notie: { + alert: (type: number, message: string, seconds: number) => void; + confirm: (title: string, yes_text: string, no_text: string, yes_callback: () => void) => void; + input: (title: string, submit_text: string, cancel_text: string, type: string, placeholder: string, submit_callback: (value_entered: string) => void, prefilled_value_optional?: string) => void; +};