]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
chore: fix type error in playground demo
authorEduardo San Martin Morote <posva13@gmail.com>
Fri, 19 Nov 2021 09:29:51 +0000 (10:29 +0100)
committerEduardo San Martin Morote <posva13@gmail.com>
Fri, 19 Nov 2021 09:29:51 +0000 (10:29 +0100)
packages/playground/src/stores/demo-counter.ts

index b3fe65ad420db2cc586a351a8991aef143146f2c..a2a39a6ed96980d4bbc1779bd8089290b4c8bd92 100644 (file)
@@ -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: () => ({