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