@rematch/select
Advanced tools
Comparing version 3.0.0 to 3.0.1
@@ -6,2 +6,13 @@ # Change Log | ||
## [3.0.1](https://github.com/rematch/rematch/compare/@rematch/select@3.0.0...@rematch/select@3.0.1) (2021-02-23) | ||
### Bug Fixes | ||
* @rematch/select structured selector typing ([#866](https://github.com/rematch/rematch/issues/866)) ([#868](https://github.com/rematch/rematch/issues/868)) ([42d2676](https://github.com/rematch/rematch/commit/42d267669d1bf821657f295434a9ef766e58c84d)) | ||
# [3.0.0](https://github.com/rematch/rematch/compare/@rematch/select@3.0.0-next.10...@rematch/select@3.0.0) (2021-01-31) | ||
@@ -8,0 +19,0 @@ |
@@ -28,3 +28,9 @@ import { ExtractRematchStateFromModels, Models, Model, Action, RematchRootState, ModelReducers, ModelEffects, ModelEffectsCreator } from '@rematch/core'; | ||
export declare type ModelSelectorsConfig<TModels extends Models<TModels> = Record<string, any>, TSliceState = any> = ModelSelectorsFactory<TModels, TSliceState> | ModelSelectorFactories<TModels, TSliceState>; | ||
export declare type RematchSelect<TModels extends Models<TModels>, TRootState = RematchRootState<TModels>> = (<TReturn>(mapSelectToProps: (select: RematchSelect<TModels>) => TReturn) => Reselect.OutputParametricSelector<TRootState, any, TReturn, Reselect.Selector<TRootState, Record<string, any>>> & Reselect.OutputSelector<TRootState, TReturn, Reselect.Selector<TRootState, Record<string, any>>>) & StoreSelectors<TModels>; | ||
export declare type RematchSelect<TModels extends Models<TModels>, TRootState = RematchRootState<TModels>> = (<TReturn extends { | ||
[key: string]: (state: TRootState) => any; | ||
}>(mapSelectToProps: (select: RematchSelect<TModels>) => TReturn) => Reselect.OutputParametricSelector<TRootState, any, { | ||
[K in keyof TReturn]: ReturnType<TReturn[K]>; | ||
}, Reselect.Selector<TRootState, Record<string, any>>> & Reselect.OutputSelector<TRootState, { | ||
[K in keyof TReturn]: ReturnType<TReturn[K]>; | ||
}, Reselect.Selector<TRootState, Record<string, any>>>) & StoreSelectors<TModels>; | ||
declare module '@rematch/core' { | ||
@@ -31,0 +37,0 @@ interface RematchStore<TModels extends Models<TModels> = Record<string, any>, TExtraModels extends Models<TModels> = Record<string, any>> extends ReduxStore<RematchRootState<TModels, TExtraModels>, Action> { |
{ | ||
"name": "@rematch/select", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "Selectors plugin for Rematch", | ||
@@ -30,7 +30,7 @@ "homepage": "https://rematch.github.io/rematch", | ||
"devDependencies": { | ||
"@rematch/core": "^2.0.0", | ||
"@rematch/core": "^2.0.1", | ||
"redux": "^4.0.5" | ||
}, | ||
"peerDependencies": { | ||
"@rematch/core": ">=2.0.0-next.0", | ||
"@rematch/core": "^2.0.0", | ||
"redux": ">=4" | ||
@@ -59,3 +59,3 @@ }, | ||
}, | ||
"gitHead": "d575883af19a6f105655ea23b143e64590720acb" | ||
"gitHead": "e123bb5976bcc1ef7f178c2b685bed9805d80cda" | ||
} |
@@ -155,3 +155,3 @@ // Type definitions for @rematch/select 2.0.0 | ||
TRootState = RematchRootState<TModels> | ||
> = (<TReturn>( | ||
> = (<TReturn extends { [key: string]: (state: TRootState) => any }>( | ||
mapSelectToProps: (select: RematchSelect<TModels>) => TReturn | ||
@@ -161,3 +161,3 @@ ) => Reselect.OutputParametricSelector< | ||
any, | ||
TReturn, | ||
{ [K in keyof TReturn]: ReturnType<TReturn[K]> }, | ||
Reselect.Selector<TRootState, Record<string, any>> | ||
@@ -167,3 +167,3 @@ > & | ||
TRootState, | ||
TReturn, | ||
{ [K in keyof TReturn]: ReturnType<TReturn[K]> }, | ||
Reselect.Selector<TRootState, Record<string, any>> | ||
@@ -170,0 +170,0 @@ >) & |
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
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
93619
21
848
0
110