diff --git a/types/mirrorx/index.d.ts b/types/mirrorx/index.d.ts index 28a5fcf5ff..1d8da94593 100644 --- a/types/mirrorx/index.d.ts +++ b/types/mirrorx/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for mirrorjs 0.2.10 +// Type definitions for mirrorx 0.2.10 // Project: https://github.com/mirrorjs/mirror // Definitions by: Aaronphy // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped @@ -11,9 +11,6 @@ import * as React from 'react'; import { Connect } from 'react-redux'; import { match } from "react-router"; -export = mirror; -export as namespace mirror; - declare namespace mirror { type Diff = ({[P in T]: P } & {[P in U]: never } & { [x: string]: never })[T]; @@ -191,3 +188,5 @@ declare namespace mirror { function withRouter

>(component: React.ComponentType

): React.ComponentClass>>; function withRouter>(target: TFunction): TFunction; } + +export = mirror; \ No newline at end of file diff --git a/types/mirrorx/mirrorx-tests.ts b/types/mirrorx/mirrorx-tests.ts index 50d4f3dbe7..c608828e14 100644 --- a/types/mirrorx/mirrorx-tests.ts +++ b/types/mirrorx/mirrorx-tests.ts @@ -1,9 +1,9 @@ import * as React from 'react'; import * as ReactDOM from 'react-dom'; import mirror = require('mirrorx'); - /** - * add mirror.model.tests - */ +/** + * add mirror.model.tests + */ mirror.model({ name: 'app', initialState: 0, @@ -14,9 +14,9 @@ mirror.model({ effects: { async incrementAsync() { await new Promise((resolve, reject) => { - setTimeout(() => { - resolve(); - }, 1000); + setTimeout(() => { + resolve(); + }, 1000); }); mirror.actions.app.increment(); }