mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 04:50:18 +00:00
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:
committed by
Mohamed Hegazy
parent
e1ad95baa4
commit
56bbef5c87
Vendored
+9
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user