mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 06:47:03 +00:00
update the ts versin
This commit is contained in:
Vendored
+1
-1
@@ -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';
|
||||
|
||||
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user