@rematch/persist
Advanced tools
Comparing version 2.0.0-next.10 to 2.0.0-next.11
@@ -6,2 +6,13 @@ # Change Log | ||
# [2.0.0-next.11](https://github.com/rematch/rematch/compare/@rematch/persist@2.0.0-next.10...@rematch/persist@2.0.0-next.11) (2021-01-13) | ||
### Bug Fixes | ||
* @rematch/persist storeOptions types ([21b1371](https://github.com/rematch/rematch/commit/21b13715d1bb5f4cec979f1cb2f6c3cf61c45709)) | ||
# [2.0.0-next.10](https://github.com/rematch/rematch/compare/@rematch/persist@2.0.0-next.9...@rematch/persist@2.0.0-next.10) (2020-12-27) | ||
@@ -8,0 +19,0 @@ |
@@ -7,4 +7,7 @@ import { Plugin, Models } from '@rematch/core'; | ||
}; | ||
declare const persistPlugin: <S, TModels extends Models<TModels>, TExtraModels extends Models<TModels> = Record<string, any>>(persistConfig: PersistConfig<S, any, any, any>, nestedPersistConfig?: NestedPersist<TModels>, persistStoreConfig?: PersistorOptions | undefined, callback?: (() => void) | undefined) => Plugin<TModels, TExtraModels, Partial<TExtraModels>>; | ||
export declare type PersistorStoreOptionsNotExposed = { | ||
manualPersist?: boolean; | ||
}; | ||
declare const persistPlugin: <S, TModels extends Models<TModels>, TExtraModels extends Models<TModels> = Record<string, any>>(persistConfig: PersistConfig<S, any, any, any>, nestedPersistConfig?: NestedPersist<TModels>, persistStoreConfig?: (PersistorOptions & PersistorStoreOptionsNotExposed) | undefined, callback?: (() => void) | undefined) => Plugin<TModels, TExtraModels, Partial<TExtraModels>>; | ||
export default persistPlugin; | ||
//# sourceMappingURL=index.d.ts.map |
{ | ||
"name": "@rematch/persist", | ||
"version": "2.0.0-next.10", | ||
"version": "2.0.0-next.11", | ||
"description": "Redux-Persist v6 plugin for Rematch. Provides simple redux state persistence using local storage options.", | ||
@@ -54,3 +54,3 @@ "homepage": "https://rematch.github.io/rematch", | ||
}, | ||
"gitHead": "ade414a481bccc4cdb407fad5d922446ecfffe58" | ||
"gitHead": "a5a98f7b292129ad4d31b686feb1639068c3645f" | ||
} |
@@ -20,2 +20,6 @@ import { Plugin, Models } from '@rematch/core' | ||
export type PersistorStoreOptionsNotExposed = { | ||
manualPersist?: boolean | ||
} | ||
// rematch plugin | ||
@@ -29,3 +33,3 @@ const persistPlugin = < | ||
nestedPersistConfig: NestedPersist<TModels> = {}, | ||
persistStoreConfig?: PersistorOptions, | ||
persistStoreConfig?: PersistorOptions & PersistorStoreOptionsNotExposed, | ||
callback?: () => void | ||
@@ -32,0 +36,0 @@ ): Plugin<TModels, TExtraModels> => { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
26070
177