UNPKG

unleash-server

Version:

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

18 lines 1.05 kB
import type { Request, Response } from 'express'; import type { IUnleashServices } from '../../services/index.js'; import type { IUnleashConfig } from '../../types/option.js'; import { type FeatureTypesSchema } from '../../openapi/spec/feature-types-schema.js'; import Controller from '../controller.js'; import { type FeatureTypeSchema, type UpdateFeatureTypeLifetimeSchema } from '../../openapi/index.js'; import type { IAuthRequest } from '../unleash-types.js'; export declare class FeatureTypeController extends Controller { private featureTypeService; private openApiService; private flagResolver; constructor(config: IUnleashConfig, { featureTypeService, openApiService, }: Pick<IUnleashServices, 'featureTypeService' | 'openApiService'>); getAllFeatureTypes(_req: Request, res: Response<FeatureTypesSchema>): Promise<void>; updateLifetime(req: IAuthRequest<{ id: string; }, unknown, UpdateFeatureTypeLifetimeSchema>, res: Response<FeatureTypeSchema>): Promise<void>; } //# sourceMappingURL=feature-type.d.ts.map