UNPKG

unleash-server

Version:

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

13 lines (12 loc) 633 B
import { Request, Response } from 'express'; import { IUnleashConfig } from '../../types/option'; import { IUnleashServices } from '../../types'; import { IConstraint } from '../../types/model'; import Controller from '../controller'; export default class ConstraintController extends Controller { private featureService; private openApiService; private readonly logger; constructor(config: IUnleashConfig, { featureToggleServiceV2, openApiService, }: Pick<IUnleashServices, 'featureToggleServiceV2' | 'openApiService'>); validateConstraint(req: Request<void, void, IConstraint>, res: Response): Promise<void>; }