]> 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 10:41:52 +0000 (12:41 +0200)
__tests__/store.spec.ts
test-dts/customizations.test-d.ts

index da089cc00684dae480ba2937495b09c776a32d50..e38b42a1c2c771d01e62426ddb56e657404abfad 100644 (file)
@@ -114,6 +114,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 0d4407da4d15bd96aba007fdbc291ccb16c0bb38..7e6e6155343d5b39835ce040fac5757d4b11771b 100644 (file)
@@ -8,6 +8,7 @@ declare module '../dist/pinia' {
 
   export interface PiniaCustomProperties<Id, S, G, A> {
     $actions: Array<keyof A>
+    myState: number
   }
 
   export interface PiniaCustomStateProperties<S> {