diff --git a/README.md b/README.md index b60c0bf..f3adf78 100644 --- a/README.md +++ b/README.md @@ -49,8 +49,8 @@ export const preferences = persisted('local-storage-key', 'default-value', { serializer: devalue, // defaults to `JSON` storage: 'session', // 'session' for sessionStorage, defaults to 'local' syncTabs: true, // choose wether to sync localStorage across tabs, default is true - onWriteError: (e) => {/* handle or rethrow */}, // Defaults to console.error with the error object - onParseError: (raw, e) => {/* handle or rethrow */}, // Defaults to console.error with the error object + onWriteError: (error) => {/* handle or rethrow */}, // Defaults to console.error with the error object + onParseError: (raw, error) => {/* handle or rethrow */}, // Defaults to console.error with the error object }) ```