@envelop/core
Version:
This is the core package for Envelop. You can find a complete documentation here: https://github.com/n1ru4l/envelop
12 lines (11 loc) • 386 B
TypeScript
import { 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 {};