]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
refactor: remove old fixme
authorEduardo San Martin Morote <posva13@gmail.com>
Tue, 22 Sep 2020 09:58:56 +0000 (11:58 +0200)
committerEduardo San Martin Morote <posva13@gmail.com>
Tue, 22 Sep 2020 09:58:56 +0000 (11:58 +0200)
src/store.ts

index 554f3bac1835709b33961f92c55e41e80ccfb1fc..37b4b36f5c612f1a4fb97e719c804a563867aabd 100644 (file)
@@ -81,7 +81,6 @@ export function buildStore<
     state => {
       if (isListening) {
         subscriptions.forEach(callback => {
-          // @ts-ignore FIXME: why is this even failing on TS
           callback({ storeName: id, type: '🧩 in place', payload: {} }, state)
         })
       }
@@ -94,14 +93,12 @@ export function buildStore<
 
   function patch(partialState: DeepPartial<S>): void {
     isListening = false
-    // @ts-ignore FIXME: why is this even failing on TS
     innerPatch(state.value, partialState)
     isListening = true
     // because we paused the watcher, we need to manually call the subscriptions
     subscriptions.forEach(callback => {
       callback(
         { storeName: id, type: '⤵️ patch', payload: partialState },
-        // @ts-ignore FIXME: why is this even failing on TS
         state.value
       )
     })
@@ -119,7 +116,6 @@ export function buildStore<
 
   function reset() {
     subscriptions = []
-    // @ts-ignore FIXME: why is this even failing on TS
     state.value = buildState()
   }