UNPKG

unleash-server

Version:

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

13 lines 751 B
import type { Request, Response } from 'express'; import type { IUnleashConfig } from '../../types/option.js'; import type { IUnleashServices } from '../../services/index.js'; import Controller from '../../routes/controller.js'; import { type ConstraintSchema } from '../../openapi/index.js'; export default class ConstraintsController extends Controller { private constraintsReadModel; private openApiService; private readonly logger; constructor(config: IUnleashConfig, { constraintsReadModel, openApiService, }: Pick<IUnleashServices, 'constraintsReadModel' | 'openApiService'>); validateConstraint(req: Request<void, void, ConstraintSchema>, res: Response): Promise<void>; } //# sourceMappingURL=constraints-controller.d.ts.map