16 lines
384 B
TypeScript
16 lines
384 B
TypeScript
import { CacheHitRateAverageFragment } from '@/graphql/types';
|
|
|
|
export interface CacheHitRateAverage {
|
|
date: Date;
|
|
cacheHitRateAverage: number;
|
|
}
|
|
|
|
export const mapCacheHitRateAverage: (
|
|
cacheHitRateAverageFragment: CacheHitRateAverageFragment,
|
|
) => CacheHitRateAverage = ({ date, cacheHitRateAverage }) => {
|
|
return {
|
|
date: new Date(date),
|
|
cacheHitRateAverage,
|
|
};
|
|
};
|