]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
test: fix them
authorEduardo San Martin Morote <posva13@gmail.com>
Thu, 24 Jun 2021 10:41:52 +0000 (12:41 +0200)
committerEduardo San Martin Morote <posva13@gmail.com>
Thu, 24 Jun 2021 13:18:59 +0000 (15:18 +0200)
__tests__/store.spec.ts
test-dts/customizations.test-d.ts

index 1c6a9d1d14ac59ff2d62ff58cd5a8992108d37e2..86c90d2c911f51e11c327ae8845307d6b7997dd5 100644 (file)
@@ -103,6 +103,8 @@ describe('Store', () => {
 
   it('can replace its state', () => {
     const store = useStore()
+    // TODO: remove once plugin state achieve generics
+    // @ts-expect-error
     store.$state = {
       a: false,
       nested: {
index 3093031310d5cb7452f42c53d89e6e4032f24187..1f8de1e1ed47fbe012be36451efdfe71426a0bce 100644 (file)
@@ -7,6 +7,7 @@ declare module '../dist/src' {
 
   export interface PiniaCustomProperties<Id, S, G, A> {
     $actions: Array<keyof A>
+    myState: number
   }
 
   export interface PiniaCustomStateProperties<S> {