export interface HistoryRecord {
    content: string,
    timestamp: number,
};

export default {
    records: [] as Array<HistoryRecord>,
    push(content: string) {
        this.records.push({ content, timestamp: +new Date() });
    },
    clear() {
        this.records = [];
    },
};