1 import createCache from '@proton/shared/lib/helpers/cache';
2 import { STATUS } from '@proton/shared/lib/models/cache';
4 export interface ResolvedRequest<T> {
9 export const resolvedRequest = <T>(value: T): ResolvedRequest<T> => ({ status: STATUS.RESOLVED, value });
11 export const mockCache = createCache();
13 export const clearCache = () => mockCache.clear();