From: Eduardo San Martin Morote Date: Mon, 17 May 2021 08:59:54 +0000 (+0200) Subject: chore: remove old todo X-Git-Tag: v2.0.0-alpha.17~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ebd88c2cbc6d5041efe7841cb57fcfb2609f354b;p=thirdparty%2Fvuejs%2Fpinia.git chore: remove old todo --- 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 */