Extending `Error` results in “only refers to a type, but is being used as a value here”

后端 未结 0 1944
逝去的感伤
逝去的感伤 2020-12-15 14:07

I have Typescript 4.0.2. In lib.es5.d.ts, there is the following fragment:

interface Error {
    name: string;
    message: string;
    stack?: string;
}

int         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题