update the ts versin

This commit is contained in:
yhpnorra
2017-12-11 16:22:42 +08:00
parent 939a36fe56
commit ef68bf75d3
2 changed files with 1 additions and 5 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
// Project: https://github.com/mirrorjs/mirror
// Definitions by: Aaronphy <https://github.com/aaronphy>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.1
// TypeScript Version: 2.4
import * as React from 'react';
import * as H from 'history';
-4
View File
@@ -2,21 +2,17 @@ import { Component, ReactElement } from 'react';
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import * as mirror from 'mirrorx';
import { render,actions,withRouter,Link,NavLink,Router,Route,connect,Redirect} from 'mirrorx';
/**
* add mirror.model.tests
*
*/
mirror.model({
name:'app',
initialState: 0,
reducers:{
increment(state:any) { return state + 1 },
decrement(state:any) { return state - 1 }
},
effects:{
async incrementAsync() {
await new Promise((resolve, reject) => {