【发布时间】:2020-01-05 06:53:17
【问题描述】:
我对 Typescript 还是很陌生。请帮我解释一下下面的代码 sn-p 有什么问题。
interface ICalcValue {
readonly IsNumber : boolean;
readonly : IsString : boolean;
}
interface ICalcValue<T> extends ICalcValue {
readonly T Value;
}
【问题讨论】:
-
至少你能提供一些关于你在编译时遇到的错误的细节。
标签: typescript inheritance typescript-generics