grafast
Version:
Cutting edge GraphQL planning and execution engine
10 lines • 966 B
TypeScript
import type { Maybe } from "../index.js";
import type { ListCapableStep, Step } from "../step.js";
import type { ConnectionHandlingStep, ConnectionOptimizedStep, ItemsStep, StepRepresentingList } from "./connection.js";
import { __ListTransformStep } from "./listTransform.js";
/**
* Transforms a list by wrapping each element in the list with the given mapper.
*/
export declare function each<TListStep extends StepRepresentingList<any> & Partial<ConnectionOptimizedStep<any, any, any, any> | ConnectionHandlingStep<any, any, any, any>>, TResultItemStep extends Step>(listStep: TListStep, mapper: (itemPlan: ItemsStep<TListStep> extends ListCapableStep<any, any> ? ReturnType<ItemsStep<TListStep>["listItem"]> : Step<TListStep extends Step<Maybe<ReadonlyArray<infer U>>> ? U : any>) => TResultItemStep): __ListTransformStep<any, any, any, any>;
export declare function isSkippableEach($step: Step): $step is __ListTransformStep;
//# sourceMappingURL=each.d.ts.map