]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
docs: update `$state` JSDoc to reflect internal patching (#2199)
authorAlex Liu <dsa1314@gmail.com>
Mon, 15 May 2023 13:39:28 +0000 (21:39 +0800)
committerGitHub <noreply@github.com>
Mon, 15 May 2023 13:39:28 +0000 (15:39 +0200)
Co-authored-by: Eduardo San Martin Morote <posva@users.noreply.github.com>
packages/pinia/src/types.ts

index 4907fc6ce5c5491532db38860fa790f015ada45b..568695d870430d87d22cd0b424c06fd16f50349e 100644 (file)
@@ -321,7 +321,7 @@ export interface _StoreWithState<
   A /* extends ActionsTree */
 > extends StoreProperties<Id> {
   /**
-   * State of the Store. Setting it will replace the whole state.
+   * State of the Store. Setting it will internally call `$patch()` to update the state.
    */
   $state: UnwrapRef<S> & PiniaCustomStateProperties<S>