@envelop/core
Version:
12 lines (11 loc) • 391 B
TypeScript
import type { Plugin } from '@envelop/types';
import { envelopIsIntrospectionSymbol } from '../utils.js';
type LoggerPluginOptions = {
logFn: typeof console.log;
skipIntrospection?: boolean;
};
type InternalPluginContext = {
[envelopIsIntrospectionSymbol]?: true;
};
export declare const useLogger: (rawOptions?: LoggerPluginOptions) => Plugin<InternalPluginContext>;
export {};