From 97dca788c62a5428186215b2d835ccd763d73262 Mon Sep 17 00:00:00 2001 From: andyshuxin Date: Thu, 7 Jul 2016 17:39:58 +0800 Subject: [PATCH] Add semicolons --- redux-ui/redux-ui-tests.ts | 14 +++++++------- redux-ui/redux-ui.d.ts | 26 +++++++++++++------------- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/redux-ui/redux-ui-tests.ts b/redux-ui/redux-ui-tests.ts index c039fcf349..5576a19b9d 100644 --- a/redux-ui/redux-ui-tests.ts +++ b/redux-ui/redux-ui-tests.ts @@ -5,8 +5,8 @@ import * as React from 'react' import ui, { ReduxUIProps, reducer } from 'redux-ui' type UIShape = { - s: string -} + s: string; +}; @ui({ key: 'Root', @@ -22,14 +22,14 @@ class Root extends React.Component, {}> { console.info( this.props.ui.s, this.props.uiKey - ) - this.props.updateUI('s', 'a') - this.props.updateUI({s: 'a'}) - this.props.resetUI() + ); + this.props.updateUI('s', 'a'); + this.props.updateUI({s: 'a'}); + this.props.resetUI(); } } Redux.combineReducers({ ui: reducer, -}) +}); diff --git a/redux-ui/redux-ui.d.ts b/redux-ui/redux-ui.d.ts index bc35729be5..303c8f0cf6 100644 --- a/redux-ui/redux-ui.d.ts +++ b/redux-ui/redux-ui.d.ts @@ -2,49 +2,49 @@ declare module "redux-ui" { - import * as Redux from 'redux' + import * as Redux from 'redux'; export interface uiParams { // optional key which is used to determine the UI path in which state will // be stored. if omitted this is randomly generated. - key?: string + key?: string; // optional persist, defaults to false. if set to true persist will keep UI // state for this component after it unmounts. if set to false the UI state // will be deleted and recreated when the component remounts - persist?: boolean + persist?: boolean; // **required**: UI state for the component - state: UIStateShape + state: UIStateShape; // optional mergeProps passed to react-redux' @connect - mergeProps?: (stateProps: any, dispatchProps: any, ownProps: any) => any + mergeProps?: (stateProps: any, dispatchProps: any, ownProps: any) => any; // optional `options` passed to react-redux @connect options?: { pure?: boolean; withRef?: boolean; - } + }; } export interface ReduxUIProps { // The key passed to the decorator from the decorator // (eg. 'some-decorator' with `@ui('some-decorator')` - uiKey: string + uiKey: string; // The UI state for the component's `uiKey` - ui: UIStateShape + ui: UIStateShape; // A function accepting either a name/value pair or object which updates // state within `uiKey` - updateUI(obj: UIStateShape): void - updateUI(key: string, value: any): void + updateUI(obj: UIStateShape): void; + updateUI(key: string, value: any): void; // A function which resets the state within `uiKey` to its default - resetUI(): void + resetUI(): void; } - export const reducer: Redux.Reducer + export const reducer: Redux.Reducer; - export default function ui(params: uiParams): (component: T) => T + export default function ui(params: uiParams): (component: T) => T; }