From ebd88c2cbc6d5041efe7841cb57fcfb2609f354b Mon Sep 17 00:00:00 2001 From: Eduardo San Martin Morote Date: Mon, 17 May 2021 10:59:54 +0200 Subject: [PATCH] chore: remove old todo --- src/store.ts | 1 - src/types.ts | 8 -------- 2 files changed, 9 deletions(-) diff --git a/src/store.ts b/src/store.ts index 3570b1bc..ae1ffe06 100644 --- a/src/store.ts +++ b/src/store.ts @@ -183,7 +183,6 @@ function initStore< () => pinia.state.value[$id] as UnwrapRef, (state, oldState) => { if (isListening) { - // TODO: remove payload callback( { storeName: $id, diff --git a/src/types.ts b/src/types.ts index 4fec98dc..cf8b38af 100644 --- a/src/types.ts +++ b/src/types.ts @@ -360,14 +360,6 @@ export type StoreWithGetters = { readonly [k in keyof G]: G[k] extends (...args: any[]) => infer R ? R : never } -// // in this type we forget about this because otherwise the type is recursive -// export type StoreWithThisGetters = { -// // TODO: does the infer this as the second argument work? -// [k in keyof G]: G[k] extends (this: infer This, store?: any) => infer R -// ? (this: This, store?: This) => R -// : never -// } - /** * Store type to build a store */ -- 2.47.2