reshow-return
Advanced tools
Comparing version 0.17.41 to 0.17.42
@@ -15,3 +15,4 @@ "use strict"; | ||
* @template StateType | ||
* @typedef {import('reshow-flux-base').DispatchType<StateType>} DispatchType | ||
* @template ActionType | ||
* @typedef {import('reshow-flux-base').DispatchType<StateType, ActionType>} DispatchType | ||
*/ | ||
@@ -22,3 +23,3 @@ /** | ||
* @param {{[key: string]: React.ReactElement}|Immutable.Map<string,React.ReactElement>} [initChildren] | ||
* @returns {[React.ReactElement[], DispatchType<ChildrenType>, DispatchType<any>]} | ||
* @returns {[React.ReactElement[], DispatchType<any, ChildrenType>, DispatchType<any, string[]>]} | ||
*/ | ||
@@ -25,0 +26,0 @@ var usePartialRender = function usePartialRender(initRenderKeys, initChildren) { |
@@ -15,2 +15,3 @@ "use strict"; | ||
* @property {boolean} [immutable] | ||
* @property {boolean} [renewProps] | ||
*/ | ||
@@ -32,3 +33,5 @@ | ||
_ref$immutable = _ref.immutable, | ||
immutable = _ref$immutable === void 0 ? true : _ref$immutable; | ||
immutable = _ref$immutable === void 0 ? true : _ref$immutable, | ||
_ref$renewProps = _ref.renewProps, | ||
renewProps = _ref$renewProps === void 0 ? true : _ref$renewProps; | ||
var state = (0, _reshowFlux.useConnect)(_connectOptions["default"])({ | ||
@@ -39,3 +42,4 @@ store: store, | ||
excludeStates: excludeStates, | ||
immutable: immutable | ||
immutable: immutable, | ||
renewProps: renewProps | ||
}); | ||
@@ -42,0 +46,0 @@ return state; |
{ | ||
"version": "0.17.41", | ||
"version": "0.17.42", | ||
"name": "reshow-return", | ||
@@ -4,0 +4,0 @@ "repository": { |
@@ -9,3 +9,3 @@ export default Return; | ||
export type ReturnProps = { | ||
store: import("reshow-flux-base").StoreObject<any>; | ||
store: import("reshow-flux-base").StoreObject<any, any>; | ||
initStates: import("../../connectOptions").InitStatesProps; | ||
@@ -12,0 +12,0 @@ pathStates?: { |
export default usePartialRender; | ||
export type DispatchType<StateType> = import('reshow-flux-base').DispatchType<StateType>; | ||
export type DispatchType<StateType, ActionType> = import('reshow-flux-base').DispatchType<StateType, ActionType>; | ||
/** | ||
* @template StateType | ||
* @typedef {import('reshow-flux-base').DispatchType<StateType>} DispatchType | ||
* @template ActionType | ||
* @typedef {import('reshow-flux-base').DispatchType<StateType, ActionType>} DispatchType | ||
*/ | ||
@@ -11,7 +12,7 @@ /** | ||
* @param {{[key: string]: React.ReactElement}|Immutable.Map<string,React.ReactElement>} [initChildren] | ||
* @returns {[React.ReactElement[], DispatchType<ChildrenType>, DispatchType<any>]} | ||
* @returns {[React.ReactElement[], DispatchType<any, ChildrenType>, DispatchType<any, string[]>]} | ||
*/ | ||
declare function usePartialRender<ChildrenType>(initRenderKeys?: string[] | import("immutable").Seq<any, any>, initChildren?: { | ||
[key: string]: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>; | ||
} | Map<string, import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>>): [import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>[], DispatchType<ChildrenType>, DispatchType<any>]; | ||
} | Map<string, import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>>): [import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>[], DispatchType<any, ChildrenType>, DispatchType<any, string[]>]; | ||
import { Map } from "reshow-flux"; |
@@ -8,4 +8,5 @@ export default useReturn; | ||
immutable?: boolean; | ||
renewProps?: boolean; | ||
}; | ||
export type UseReturnType = (initStates: import('./connectOptions').InitStatesProps, store: import("reshow-flux-base").StoreObject<any>, payload?: UseReturnPayLoad) => any; | ||
export type UseReturnType = (initStates: import('./connectOptions').InitStatesProps, store: import("reshow-flux-base").StoreObject<any, any>, payload?: UseReturnPayLoad) => any; | ||
/** | ||
@@ -16,2 +17,3 @@ * @typedef {object} UseReturnPayLoad | ||
* @property {boolean} [immutable] | ||
* @property {boolean} [renewProps] | ||
*/ | ||
@@ -18,0 +20,0 @@ /** |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
55728
1623