final-form-persist
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -11,3 +11,4 @@ import { Decorator } from "final-form"; | ||
clear: () => void; | ||
isPersisted: boolean; | ||
} | ||
export declare const createPersistDecorator: (options: FinalFormPersistOptions) => FinalFormPersistDecorator; |
@@ -439,2 +439,3 @@ /*! ***************************************************************************** | ||
clear: clear, | ||
isPersisted: !!storage.getItem(name), | ||
}; | ||
@@ -441,0 +442,0 @@ }; |
@@ -443,2 +443,3 @@ 'use strict'; | ||
clear: clear, | ||
isPersisted: !!storage.getItem(name), | ||
}; | ||
@@ -445,0 +446,0 @@ }; |
{ | ||
"name": "final-form-persist", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Persist your form values into a storage", | ||
@@ -5,0 +5,0 @@ "author": "premieroctet", |
@@ -45,2 +45,6 @@ # final-form-persist | ||
## Example | ||
[Example](https://codesandbox.io/s/final-form-persist-example-s4wz5) build with [react-final-form](https://github.com/final-form/react-final-form) | ||
## API | ||
@@ -54,6 +58,6 @@ | ||
createPersistDecorator = ({ | ||
name: string; | ||
debounceTime?: number; | ||
whitelist: string[]; | ||
storage?: Storage; | ||
name: string | ||
debounceTime?: number | ||
whitelist: string[] | ||
storage?: Storage | ||
}) => FinalFormPersistDecorator | ||
@@ -68,2 +72,3 @@ ``` | ||
clear: () => void | ||
isPersisted: boolean | ||
} | ||
@@ -70,0 +75,0 @@ ``` |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
89737
815
77
7