From d45d085d31aa724921380c105bba5266d68e042e 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 da089cc0..e38b42a1 100644 --- a/__tests__/store.spec.ts +++ b/__tests__/store.spec.ts @@ -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: { diff --git a/test-dts/customizations.test-d.ts b/test-dts/customizations.test-d.ts index 0d4407da..7e6e6155 100644 --- a/test-dts/customizations.test-d.ts +++ b/test-dts/customizations.test-d.ts @@ -8,6 +8,7 @@ declare module '../dist/pinia' { export interface PiniaCustomProperties { $actions: Array + myState: number } export interface PiniaCustomStateProperties { -- 2.47.2