openapi-connect
Version:
Base for microservices around OpenAPI/Swagger
16 lines (15 loc) • 658 B
TypeScript
/// <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;