UNPKG

openapi-connect

Version:
16 lines (15 loc) 658 B
/// <reference types="node" /> import * as http from 'http'; import { IOption, IOptionalOption } from './option'; export interface IUnlessOptions extends IOptionalOption { custom?: (req: http.IncomingMessage) => boolean; path?: string | RegExp | (string | RegExp)[]; ext?: string | string[]; method?: string | string[]; } export interface IUnlessOptionsWithDefaults extends IUnlessOptions, IOption { enable: boolean; } export declare const getDefaultOptions: (basePath: string) => IUnlessOptionsWithDefaults; declare const _default: (basePath: string) => (options?: IUnlessOptions) => IUnlessOptionsWithDefaults; export default _default;