UNPKG

@envelop/core

Version:

This is the core package for Envelop. You can find a complete documentation here: https://github.com/n1ru4l/envelop

4 lines (3 loc) 299 B
import { 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;