Skip to content

Commit bcd5cff

Browse files
changes requested at PR
1 parent 3f34edc commit bcd5cff

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

lib/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ export declare const persistMiddleware: (save: SaveCallback, load: LoadCallback)
2222
* @param debug - Debug data to the console
2323
*
2424
*/
25-
export declare function persistTree(structure: any, store: any, debug: boolean): void;
25+
export declare function createPersistMachine(structure: any, store: any, debug: boolean): void;

lib/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export const persistMiddleware = (save, load) => (next) => (action) => __awaiter
7878
* @param debug - Debug data to the console
7979
*
8080
*/
81-
export function persistTree(structure, store, debug) {
81+
export function createPersistMachine(structure, store, debug) {
8282
/*
8383
* We do an initial map of the structure
8484
*/
@@ -125,7 +125,7 @@ export function persistTree(structure, store, debug) {
125125
const newState = _pickBy(state, (value, key) => {
126126
/**
127127
* If nothing is passed to the `values`
128-
* parameter, all values will be passed.
128+
* parameter, all values will be used.
129129
*/
130130
if (_isNil(stateValues))
131131
return value;

lib/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export const persistMiddleware = (save: SaveCallback, load: LoadCallback) => (ne
8585
* @param debug - Debug data to the console
8686
*
8787
*/
88-
export function persistTree(structure : any, store : any, debug: boolean) {
88+
export function createPersistMachine(structure : any, store : any, debug: boolean) {
8989
/*
9090
* We do an initial map of the structure
9191
*/
@@ -139,7 +139,7 @@ export function persistTree(structure : any, store : any, debug: boolean) {
139139
const newState = _pickBy(state, (value : any, key : any) => {
140140
/**
141141
* If nothing is passed to the `values`
142-
* parameter, all values will be passed.
142+
* parameter, all values will be used.
143143
*/
144144
if (_isNil(stateValues)) return value;
145145

0 commit comments

Comments
 (0)