Skip to content

Commit

Permalink
add readonly to stash
Browse files Browse the repository at this point in the history
  • Loading branch information
alvrs committed Aug 16, 2024
1 parent 8961fae commit b5d2ebf
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/stash/src/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,15 +153,15 @@ export type Stash<config extends StoreConfig = StoreConfig> = {
/**
* Get a readonly reference to the current state
*/
get: () => State<config>;
readonly get: () => State<config>;
/**
* Internal references for interacting with the state.
* @internal
* @deprecated Do not use this internal reference externally.
*/
_: {
tableSubscribers: TableSubscribers;
storeSubscribers: StoreSubscribers;
state: MutableState<config>;
readonly _: {
readonly tableSubscribers: TableSubscribers;
readonly storeSubscribers: StoreSubscribers;
readonly state: MutableState<config>;
};
};

0 comments on commit b5d2ebf

Please sign in to comment.