From 6b2af09a5c4bdfa42af077f2d2119be58755bdf0 Mon Sep 17 00:00:00 2001 From: yhpnorra Date: Tue, 19 Dec 2017 19:46:30 +0800 Subject: [PATCH] add export --- types/mirrorx/index.d.ts | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/types/mirrorx/index.d.ts b/types/mirrorx/index.d.ts index 936078e9de..986287c5ad 100644 --- a/types/mirrorx/index.d.ts +++ b/types/mirrorx/index.d.ts @@ -11,25 +11,25 @@ import * as React from 'react'; import { Connect } from 'react-redux'; import { match } from "react-router"; -type Diff = ({[P in T]: P } & {[P in U]: never } & { [x: string]: never })[T]; -type Omit = Pick>; +export type Diff = ({[P in T]: P } & {[P in U]: never } & { [x: string]: never })[T]; +export type Omit = Pick>; -interface model { +export interface model { name: string; initialState?: any; reducers?: any; effects?: any; } -interface _model { +export interface _model { name: string; reducers: any; } -interface LinkProps extends React.AnchorHTMLAttributes { +export interface LinkProps extends React.AnchorHTMLAttributes { to: H.LocationDescriptor; replace?: boolean; } -interface NavLinkProps extends LinkProps { +export interface NavLinkProps extends LinkProps { activeClassName?: string; activeStyle?: React.CSSProperties; exact?: boolean; @@ -38,12 +38,12 @@ interface NavLinkProps extends LinkProps { location?: H.Location; } -interface SwitchProps { +export interface SwitchProps { children?: React.ReactNode; location?: H.Location; } -interface RedirectProps { +export interface RedirectProps { to: H.LocationDescriptor; push?: boolean; from?: string; @@ -52,14 +52,14 @@ interface RedirectProps { strict?: boolean; } -interface RouteComponentProps

{ +export interface RouteComponentProps

{ match: match

; location: H.Location; history: H.History; staticContext?: any; } -interface RouteProps { +export interface RouteProps { location?: H.Location; component?: React.ComponentType> | React.ComponentType; render?: ((props: RouteComponentProps) => React.ReactNode); @@ -69,22 +69,22 @@ interface RouteProps { strict?: boolean; } -interface PromptProps { +export interface PromptProps { message: string | ((location: H.Location) => string | boolean); when?: boolean; } -interface LocationActionPayload { +export interface LocationActionPayload { method: string; args?: any[]; } -interface RouterAction { +export interface RouterAction { type: '@@router/CALL_HISTORY_METHOD'; payload: LocationActionPayload; } -interface routeActions { +export interface routeActions { push(location: any, state?: any): RouterAction; replace(location: any, state?: any): RouterAction; go(n: number): RouterAction; @@ -92,17 +92,17 @@ interface routeActions { goForward(): RouterAction; } -interface ConnectedRouterProps { +export interface ConnectedRouterProps { store?: any; history?: H.History; } -interface Actions { +export interface Actions { routing: routeActions; [propName: string]: any; } -interface defaultOptions { +export interface defaultOptions { initialState?: {}; historyMode?: string; middlewares: any[]; @@ -110,7 +110,7 @@ interface defaultOptions { addEffect(name: string, handler: () => any): any; } -interface Renderer { +export interface Renderer { // Deprecated(render): The return value is deprecated. // In future releases the render function's return type will be void. (