types/route.types.ts
types/route.types.ts is a file in Bane's Lab Build Scripts. 15 lines of code and 6 definitions.
export interface RouteDates {
readonly lastmod: string;
readonly published: string;
}
export interface RouteStamp extends RouteDates {
readonly fingerprint: string;
}
export type HeldStamp = Omit<RouteStamp, "published"> & Partial<Pick<RouteStamp, "published">>;
export type RouteLedger = Readonly<Partial<Record<string, HeldStamp>>>;
export type RouteStamps = ReadonlyMap<string, string>;
export interface StampedRoutes {
readonly dates: ReadonlyMap<string, RouteDates>;
readonly ledger: Readonly<Record<string, RouteStamp>>;
readonly stamps: RouteStamps;
}