From 8043464bb6c1273d03f365ddb11014e5bf2beade Mon Sep 17 00:00:00 2001 From: Joshua Nussbaum Date: Thu, 18 Apr 2024 23:16:18 -0400 Subject: [PATCH] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 }) ```