Angular-toastr: expand function types (#16034)

This commit is contained in:
Troy McKinnon 2017-04-26 13:49:22 -05:00 committed by Sheetal Nandi
parent d5240b6d9c
commit f9bf70b08f

View File

@ -1,6 +1,6 @@
// Type definitions for Angular Toastr v1.6.0
// Project: https://github.com/Foxandxss/angular-toastr
// Definitions by: Niko Kovačič <https://github.com/nkovacic>
// Definitions by: Niko Kovačič <https://github.com/nkovacic>, Troy McKinnon <https://github.com/trodi>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="angular" />
@ -15,9 +15,9 @@ declare module 'angular' {
closeHtml?: string;
extendedTimeOut?: number;
messageClass?: string;
onHidden?: Function;
onShown?: Function;
onTap?: Function;
onHidden?: (wasClicked: boolean, toast: angular.toastr.IToast) => void;
onShown?: (toast: angular.toastr.IToast) => void;
onTap?: (toast: angular.toastr.IToast) => void;
progressBar?: boolean;
tapToDismiss?: boolean;
templates?: {