From 8d252184e421915fbc9f56a5debcb098e0d2d68d Mon Sep 17 00:00:00 2001 From: Tanguy Krotoff Date: Tue, 24 May 2016 16:24:29 +0200 Subject: [PATCH] Allow ES6 import syntax for wolfy87-eventemitter.d.ts (#9415) * Boostrap -> Bootstrap * Allow ES6 import syntax for wolfy87-eventemitter.d.ts See https://github.com/Microsoft/TypeScript/issues/5073 --- redux-bootstrap/redux-bootstrap.d.ts | 4 ++-- wolfy87-eventemitter/wolfy87-eventemitter-tests.ts | 5 ++--- wolfy87-eventemitter/wolfy87-eventemitter.d.ts | 3 ++- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/redux-bootstrap/redux-bootstrap.d.ts b/redux-bootstrap/redux-bootstrap.d.ts index b7873b0793..933fa988a7 100644 --- a/redux-bootstrap/redux-bootstrap.d.ts +++ b/redux-bootstrap/redux-bootstrap.d.ts @@ -9,7 +9,7 @@ declare module "redux-bootstrap" { - interface BoostrapOptions { + interface BootstrapOptions { routes: JSX.Element; reducers: ReducersOption; middlewares?: Redux.Middleware[]; @@ -27,5 +27,5 @@ declare module "redux-bootstrap" { [index: string]: Redux.Reducer; } - export default function bootstrap(options: BoostrapOptions): BootstrapResult; + export default function bootstrap(options: BootstrapOptions): BootstrapResult; } diff --git a/wolfy87-eventemitter/wolfy87-eventemitter-tests.ts b/wolfy87-eventemitter/wolfy87-eventemitter-tests.ts index d2d4e6f0cf..ec26166dc8 100644 --- a/wolfy87-eventemitter/wolfy87-eventemitter-tests.ts +++ b/wolfy87-eventemitter/wolfy87-eventemitter-tests.ts @@ -1,6 +1,6 @@ -/// +/// -import EventEmitter = require("wolfy87-eventemitter"); +import * as EventEmitter from 'wolfy87-eventemitter'; var emitter = new EventEmitter(); @@ -108,4 +108,3 @@ function testNoConflict() { var NoConflictEventEmitter = EventEmitter.noConflict(); var e: Wolfy87EventEmitter.EventEmitter = new NoConflictEventEmitter(); } - diff --git a/wolfy87-eventemitter/wolfy87-eventemitter.d.ts b/wolfy87-eventemitter/wolfy87-eventemitter.d.ts index 45c4e54e5d..8291c50c11 100644 --- a/wolfy87-eventemitter/wolfy87-eventemitter.d.ts +++ b/wolfy87-eventemitter/wolfy87-eventemitter.d.ts @@ -9,7 +9,7 @@ declare namespace Wolfy87EventEmitter { * Hash Object for manipulating multiple events. */ interface MultipleEvents { - [event:string]: any //Function | Function[] + [event: string]: any //Function | Function[] } /** @@ -506,6 +506,7 @@ declare namespace Wolfy87EventEmitter { declare module "wolfy87-eventemitter" { class EventEmitter extends Wolfy87EventEmitter.EventEmitter {} + namespace EventEmitter {} export = EventEmitter; }