From f5886d98a15064a96015c6dbdb976a455c01a12e Mon Sep 17 00:00:00 2001 From: Eduardo San Martin Morote Date: Thu, 24 Jun 2021 12:41:52 +0200 Subject: [PATCH] test: fix them --- __tests__/store.spec.ts | 2 ++ test-dts/customizations.test-d.ts | 1 + 2 files changed, 3 insertions(+) diff --git a/__tests__/store.spec.ts b/__tests__/store.spec.ts index 1c6a9d1d..86c90d2c 100644 --- a/__tests__/store.spec.ts +++ b/__tests__/store.spec.ts @@ -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: { diff --git a/test-dts/customizations.test-d.ts b/test-dts/customizations.test-d.ts index 30930313..1f8de1e1 100644 --- a/test-dts/customizations.test-d.ts +++ b/test-dts/customizations.test-d.ts @@ -7,6 +7,7 @@ declare module '../dist/src' { export interface PiniaCustomProperties { $actions: Array + myState: number } export interface PiniaCustomStateProperties { -- 2.47.3