]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
chore: remove old todo
authorEduardo San Martin Morote <posva13@gmail.com>
Mon, 17 May 2021 08:59:54 +0000 (10:59 +0200)
committerEduardo San Martin Morote <posva13@gmail.com>
Mon, 17 May 2021 09:01:03 +0000 (11:01 +0200)
src/store.ts
src/types.ts

index 3570b1bcf3602b8473257a7b699cc3dc0611f3c9..ae1ffe064e241621d2ce145243477fa0b99eff88 100644 (file)
@@ -183,7 +183,6 @@ function initStore<
       () => pinia.state.value[$id] as UnwrapRef<S>,
       (state, oldState) => {
         if (isListening) {
-          // TODO: remove payload
           callback(
             {
               storeName: $id,
index 4fec98dc03d7dec07ca801d28f8ae7795bc17187..cf8b38afa0e20d24162c5dbd5f01cd8d4050fe52 100644 (file)
@@ -360,14 +360,6 @@ export type StoreWithGetters<G> = {
   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<G> = {
-//   // 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
  */