#short
#javascript
#typescript
#typescript-typings
Is there a way to change the type of interface property defined in a *.d.ts in typescript?
for example:
An interface in x.d.ts is defined as
interface A {
property: number;
}
I want to change it in the typescript files that I write to
interface A {
property: Object;
}
or even this would work
interface B extends A {
property: Object;
}
Will this approach work? It didn't work when I tried on my system. Just want to confirm if it's even possible?
Exclude property from type: https://stackoverflow.com/questions/4...
Watch video javascript - Overriding interface property type defined in Typescript d.ts file online without registration, duration hours minute second in high quality. This video was added by user Code Samples 26 June 2023, don't forget to share it with your friends and acquaintances, it has been viewed on our site 200 once and liked it 3 people.