Showing 2 of 2 total issues
Function actionFactory
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function actionFactory<S = any, R = any>(
actions: Dictionary<ActionOption[]>,
): Dictionary<ActionHandler<S, R>> {
return reduceToDict(
Object.entries(actions).map(([name, options]) => [
Function mutationFactory
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function mutationFactory<S = any>(mutations: {
[k: string]: { key: S extends object ? keyof S : string; value?: any }[]
}): Dictionary<Mutation<S>> {
return reduceToDict(
Object.entries(mutations).map(([name, options]) => [