From 56bbef5c876e2dc145539279d39c203d6a7da304 Mon Sep 17 00:00:00 2001 From: Denis Bendrikov Date: Mon, 25 Sep 2017 22:13:02 +0300 Subject: [PATCH] Handy imports for angular-toastr (#19967) This change to the module definition allows ES6 style imports, e.g. import { IToastBaseConfig } from 'angular-toastr'; --- types/angular-toastr/index.d.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/types/angular-toastr/index.d.ts b/types/angular-toastr/index.d.ts index eddccb4021..21cf13cce2 100644 --- a/types/angular-toastr/index.d.ts +++ b/types/angular-toastr/index.d.ts @@ -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 {