有没有办法更改*.d.tsintype中定义的接口属性的类型?
例如:接口in x.d.ts定义为
interface A {
property: number;
}
Run Code Online (Sandbox Code Playgroud)
我想在我写的typescript文件中更改它
interface A {
property: Object;
}
Run Code Online (Sandbox Code Playgroud)
甚至这会起作用
interface B extends A {
property: Object;
}
Run Code Online (Sandbox Code Playgroud)
这种方法会起作用吗?当我尝试使用我的系统时,它无法正常工作.只是想确认它是否可能?