From 2959f10e96cb783eadcb9ee00f413835cd29facc Mon Sep 17 00:00:00 2001 From: MatthewPattell Date: Mon, 1 Jul 2024 16:56:04 +0200 Subject: [PATCH] fix: change option name to isNotExported --- src/make-exported.ts | 2 +- src/types.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/make-exported.ts b/src/make-exported.ts index 12e3c1f..0c92554 100644 --- a/src/make-exported.ts +++ b/src/make-exported.ts @@ -21,7 +21,7 @@ const makeExported = ( * @see IPersistOptions */ const isPropExcludedInPersist = (store: TAnyStore): boolean => { - return store?.['libStorageOptions']?.isExportedAttributes || false; + return store?.['libStorageOptions']?.isNotExported || false; }; /** diff --git a/src/types.ts b/src/types.ts index 5195421..8408c6b 100644 --- a/src/types.ts +++ b/src/types.ts @@ -158,5 +158,5 @@ export interface IPersistOptions { }; // disable export all store observable props except props marker with makeExported // default: false - isExportedAttributes?: boolean; + isNotExported?: boolean; }