mail-side.type.ts
export interface Record {
sessionId?: string;
endTime?: number;
mainSessionId?: string;
startTime: number;
}
应用
import { Record } from './mail-side.type';
record: Record = { sessionId: '', endTime: 0, mainSessionId: '', startTime: 0 }; // 约束声明