angular - interface

隆礼骞
2023-12-01

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 }; // 约束声明

 类似资料: