@rt_lite/api
Version:
An unoficial rotten tomatoes REST api
42 lines (33 loc) • 723 B
text/typescript
export type ICacheRecord <T> = {
contents: T;
readonly created: Date;
readonly modified: Date;
readonly read: Date;
};
export class CacheRecord <T> implements ICacheRecord<T> {
constructor (contents: T) {
this.
}
get created (): Date {
return new Date(this.
}
get modified (): Date {
return new Date(this.
}
get read (): Date {
return new Date(this.
}
get contents (): T {
this.
return this.
}
set contents (contents: T) {
this.
this.
this.
}
}