Handy imports for angular-toastr (#19967)

This change to the module definition allows ES6 style imports, e.g. import { IToastBaseConfig } from 'angular-toastr';
This commit is contained in:
Denis Bendrikov
2017-09-25 12:13:02 -07:00
committed by Mohamed Hegazy
parent e1ad95baa4
commit 56bbef5c87
+9
View File
@@ -8,6 +8,15 @@
import * as angular from 'angular';
export type IToastBaseConfig = angular.toastr.IToastBaseConfig;
export type IToastContainerConfig = angular.toastr.IToastContainerConfig;
export type IToastConfig = angular.toastr.IToastConfig;
export type IToastrConfig = angular.toastr.IToastrConfig;
export type IToastScope = angular.toastr.IToastScope;
export type IToast = angular.toastr.IToast;
export type IToastOptions = angular.toastr.IToastOptions;
export type IToastrService = angular.toastr.IToastrService;
declare module 'angular' {
export namespace toastr {
interface IToastBaseConfig {