mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-03 11:41:44 +00:00
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:
committed by
Masahiro Wakame
parent
4248c26185
commit
8d252184e4
Vendored
+2
-2
@@ -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
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user