unleash-server
Version:
Unleash is an enterprise ready feature flag service. It provides different strategies for handling feature flags.
19 lines • 808 B
TypeScript
import type { LogProvider } from '../logger.js';
import type { IFeatureType, IFeatureTypeStore } from '../types/stores/feature-type-store.js';
import type { Db } from './db.js';
declare class FeatureTypeStore implements IFeatureTypeStore {
private db;
private logger;
constructor(db: Db, getLogger: LogProvider);
getAll(): Promise<IFeatureType[]>;
private rowToFeatureType;
get(id: string): Promise<IFeatureType>;
getByName(name: string): Promise<IFeatureType>;
delete(key: string): Promise<void>;
deleteAll(): Promise<void>;
destroy(): void;
exists(key: string): Promise<boolean>;
updateLifetime(id: string, newLifetimeDays: number | null): Promise<IFeatureType | undefined>;
}
export default FeatureTypeStore;
//# sourceMappingURL=feature-type-store.d.ts.map