From: Eduardo San Martin Morote Date: Fri, 19 Nov 2021 09:29:51 +0000 (+0100) Subject: chore: fix type error in playground demo X-Git-Tag: @pinia/testing@0.0.6~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fbdd57eb33a643310ecb85b22cf86a86a41172b5;p=thirdparty%2Fvuejs%2Fpinia.git chore: fix type error in playground demo --- diff --git a/packages/playground/src/stores/demo-counter.ts b/packages/playground/src/stores/demo-counter.ts index b3fe65ad..a2a39a6e 100644 --- a/packages/playground/src/stores/demo-counter.ts +++ b/packages/playground/src/stores/demo-counter.ts @@ -1,6 +1,8 @@ import { defineStore, acceptHMRUpdate } from 'pinia' const delay = (t: number) => new Promise((r) => setTimeout(r, t)) +// just to ignore the not used error +delay(0) export const useCounter = defineStore('demo-counter', { state: () => ({