react-mutation-mapper
Version:
Generic Mutation Mapper
12 lines (11 loc) • 324 B
TypeScript
import { RemoteDataStatus } from 'cbioportal-utils';
export interface ICacheData<T = any> {
status: RemoteDataStatus;
data?: T;
}
export interface ICache<T = any> {
[queryId: string]: ICacheData<T>;
}
export interface SimpleCache<T = any, Q = any> {
getData(ids: string[], query: Q): ICache<T>;
}