if (payload.app === app && payload.inspectorId === INSPECTOR_ID) {
const stores = Array.from(registeredStores)
- payload.rootNodes = (payload.filter
- ? stores.filter((store) =>
- store.$id.toLowerCase().includes(payload.filter.toLowerCase())
- )
- : stores
+ payload.rootNodes = (
+ payload.filter
+ ? stores.filter((store) =>
+ store.$id
+ .toLowerCase()
+ .includes(payload.filter.toLowerCase())
+ )
+ : stores
).map(formatStoreForInspectorTree)
}
})
})
return actions[actionName].apply(
trackedStore,
- (arguments as unknown) as any[]
+ arguments as unknown as any[]
)
}
}
},
set(this: ComponentPublicInstance, value) {
// it's easier to type it here as any
- return (getCachedStore(this, useStore)[
- keysOrMapper[key]
- ] = value as any)
+ return (getCachedStore(this, useStore)[keysOrMapper[key]] =
+ value as any)
},
}
return reduced
}
}
-export const piniaSymbol = (__DEV__
- ? Symbol('pinia')
- : /* istanbul ignore next */
- Symbol()) as InjectionKey<Pinia>
+export const piniaSymbol = (
+ __DEV__ ? Symbol('pinia') : /* istanbul ignore next */ Symbol()
+) as InjectionKey<Pinia>
/**
* Context argument passed to Pinia plugins.
let ret
try {
- ret = actions[actionName].apply(localStore, (args as unknown) as any[])
+ ret = actions[actionName].apply(localStore, args as unknown as any[])
Promise.resolve(ret).then(afterCallback).catch(onErrorCallback)
} catch (error) {
throw error