Skip to content

Commit

Permalink
fix: change option name to isNotExported
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewPattell committed Jul 1, 2024
1 parent 4c31717 commit 2959f10
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/make-exported.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const makeExported = <T extends object>(
* @see IPersistOptions
*/
const isPropExcludedInPersist = (store: TAnyStore): boolean => {
return store?.['libStorageOptions']?.isExportedAttributes || false;
return store?.['libStorageOptions']?.isNotExported || false;
};

/**
Expand Down
2 changes: 1 addition & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,5 +158,5 @@ export interface IPersistOptions {
};
// disable export all store observable props except props marker with makeExported
// default: false
isExportedAttributes?: boolean;
isNotExported?: boolean;
}

0 comments on commit 2959f10

Please sign in to comment.