Skip to content

Commit

Permalink
Allow ES6 import syntax for wolfy87-eventemitter.d.ts (DefinitelyType…
Browse files Browse the repository at this point in the history
…d#9415)

* Boostrap -> Bootstrap

* Allow ES6 import syntax for wolfy87-eventemitter.d.ts

See microsoft/TypeScript#5073
  • Loading branch information
tkrotoff authored and vvakame committed May 24, 2016
1 parent 4248c26 commit 8d25218
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions redux-bootstrap/redux-bootstrap.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

declare module "redux-bootstrap" {

interface BoostrapOptions {
interface BootstrapOptions {
routes: JSX.Element;
reducers: ReducersOption;
middlewares?: Redux.Middleware[];
Expand All @@ -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;
}
5 changes: 2 additions & 3 deletions wolfy87-eventemitter/wolfy87-eventemitter-tests.ts
Original file line number Diff line number Diff line change
@@ -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();

Expand Down Expand Up @@ -108,4 +108,3 @@ function testNoConflict() {
var NoConflictEventEmitter = EventEmitter.noConflict();
var e: Wolfy87EventEmitter.EventEmitter = new NoConflictEventEmitter();
}

3 changes: 2 additions & 1 deletion wolfy87-eventemitter/wolfy87-eventemitter.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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[]
}

/**
Expand Down Expand Up @@ -506,6 +506,7 @@ declare namespace Wolfy87EventEmitter {

declare module "wolfy87-eventemitter" {
class EventEmitter extends Wolfy87EventEmitter.EventEmitter {}
namespace EventEmitter {}
export = EventEmitter;
}

Expand Down

0 comments on commit 8d25218

Please sign in to comment.