@envelop/core
Version:
4 lines (3 loc) • 304 B
text/typescript
import type { ExecutionResult, Plugin, TypedExecutionArgs } from '@envelop/types';
export type FormatterFunction = (result: ExecutionResult<any, any>, args: TypedExecutionArgs<any>) => false | ExecutionResult<any, any>;
export declare const usePayloadFormatter: (formatter: FormatterFunction) => Plugin;