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
This commit is contained in:
Tanguy Krotoff
2016-05-24 23:24:29 +09:00
committed by Masahiro Wakame
parent 4248c26185
commit 8d252184e4
3 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -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;
}
@@ -1,6 +1,6 @@
///<reference path="wolfy87-eventemitter.d.ts"/>
/// <reference path="./wolfy87-eventemitter.d.ts" />
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();
}
+2 -1
View File
@@ -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;
}