unleash-server
Version:
Unleash is an enterprise ready feature toggles service. It provides different strategies for handling feature toggles.
13 lines (12 loc) • 648 B
TypeScript
import { IFavoriteFeaturesStore } from '../../lib/types';
import { IFavoriteFeatureKey } from '../../lib/types/stores/favorite-features';
import { IFavoriteFeature } from '../../lib/types/favorites';
export default class FakeFavoriteFeaturesStore implements IFavoriteFeaturesStore {
addFavoriteFeature(favorite: IFavoriteFeatureKey): Promise<IFavoriteFeature>;
delete(key: IFavoriteFeatureKey): Promise<void>;
deleteAll(): Promise<void>;
destroy(): void;
exists(key: IFavoriteFeatureKey): Promise<boolean>;
get(key: IFavoriteFeatureKey): Promise<IFavoriteFeature>;
getAll(query?: Object): Promise<IFavoriteFeature[]>;
}