unleash-server
Version:
Unleash is an enterprise ready feature toggles service. It provides different strategies for handling feature toggles.
15 lines (14 loc) • 642 B
TypeScript
import { IContextField, IContextFieldDto, IContextFieldStore } from '../../lib/types/stores/context-field-store';
export default class FakeContextFieldStore implements IContextFieldStore {
count(): Promise<number>;
defaultContextFields: IContextField[];
contextFields: IContextField[];
create(data: IContextFieldDto): Promise<IContextField>;
delete(key: string): Promise<void>;
deleteAll(): Promise<void>;
destroy(): void;
exists(key: string): Promise<boolean>;
get(key: string): Promise<IContextField>;
getAll(): Promise<IContextField[]>;
update(data: IContextFieldDto): Promise<IContextField>;
}