From: Eduardo San Martin Morote Date: Thu, 24 Jun 2021 10:41:52 +0000 (+0200) Subject: test: fix them X-Git-Tag: v0.5.3~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f5886d98a15064a96015c6dbdb976a455c01a12e;p=thirdparty%2Fvuejs%2Fpinia.git test: fix them --- 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 {