UNPKG

unleash-server

Version:

Unleash is an enterprise ready feature flag service. It provides different strategies for handling feature flags.

19 lines 863 B
import type { Express, RequestHandler, Response } from 'express'; import type { IUnleashConfig } from '../types/option.js'; import { type JsonSchemaProps, type SchemaId } from '../openapi/index.js'; import type { ApiOperation } from '../openapi/util/api-operation.js'; export declare class OpenApiService { private readonly config; private readonly logger; private readonly api; private flagResolver; constructor(config: IUnleashConfig); validPath(op: ApiOperation): RequestHandler; useDocs(app: Express): void; docsPath(): string; registerCustomSchemas<T extends JsonSchemaProps>(schemas: Record<string, T>): void; respondWithValidation<T, S = SchemaId>(status: number, res: Response<T>, schema: SchemaId, data: T, headers?: { [header: string]: string; }): void; } //# sourceMappingURL=openapi-service.d.ts.map