在lib.d.ts中,我们可以找到以下代码:
interface Error {
name: string;
message: string;
}
interface ErrorConstructor {
new (message?: string): Error;
(message?: string): Error;
prototype: Error;
}
declare var Error: ErrorConstructor;
prototype
ErrorConstructor
属性的重要性是什么?