【发布时间】:2016-09-15 03:44:30
【问题描述】:
我有以下代码,包括一个类和一个接口。出于某种原因,Visual Studio 对我大喊“找不到名称 'RouteInterface'”,我不知道为什么。
import {Student} from './student';
export interface RouteInterface{
id: number;
startTime: Date;
endTime: Date;
neighborhood: string;
students: Student[];
tooltip: string;
tooltipcls: string;
icon: string;
}
export class Route extends RouteInterface {
id: number;
startTime: Date;
endTime: Date;
neighborhood: string;
students: Student[];
tooltip: string;
tooltipcls: string;
icon: string;
}
【问题讨论】:
标签: typescript angular typescript1.8