UNPKG

@paulchess/vuereact-combined

Version:

Vue和React快捷集成的工具包,并且适合复杂的集成场景

24 lines (23 loc) 1.2 kB
type VueComponent = any; type ReactComponent = any; type options = object | null | undefined; interface applyReduxOptions { store: any; ReactReduxContext: any; } interface vuexStore { mapStateToProps?: null | undefined | ((state: any) => object); mapGettersToProps?: null | undefined | ((getters: any) => object); mapCommitToProps?: null | undefined | ((commit: any) => any); mapDispatchToProps?: null | undefined | ( (dispatch: any) => any); } export const applyReactInVue: (ReactComponent: ReactComponent, options?: options) => VueComponent; export const applyVueInReact: (VueComponent: ReactComponent, options?: options) => ReactComponent; export const lazyVueInReact: (asyncImport: Promise<any>, options?: options) => any; export const lazyReactInVue: (asyncImport: Promise<any>, options?: options) => any; export const VueContainer: any; export const applyRedux: (applyReduxOptions: applyReduxOptions) => any; export const applyVuex: (vuexStore: any) => any; export const connectVuex: (vuexStore: vuexStore) => any; export const withVueRouter: (ReactComponent: ReactComponent) => ReactComponent; export const applyReactRouterInVue: (ReactRouterWithRouter: any) => any;