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