unleash-server
Version:
Unleash is an enterprise ready feature flag service. It provides different strategies for handling feature flags.
12 lines • 587 B
TypeScript
import type { IUnleashConfig } from '../types/option.js';
import type { Request } from 'express';
export type ClientSpecFeature = 'segments' | 'deltaApi';
export declare class ClientSpecService {
private readonly logger;
private readonly clientSpecHeader;
private readonly clientSpecFeatures;
constructor(config: Pick<IUnleashConfig, 'getLogger'>);
requestSupportsSpec(request: Request, feature: ClientSpecFeature): boolean;
versionSupportsSpec(feature: ClientSpecFeature, version: string | undefined): boolean;
}
//# sourceMappingURL=client-spec-service.d.ts.map