Answer the question
In order to leave comments, you need to log in
How to properly merge interfaces from third-party NPM modules in TypeScript?
Hi
@types/yandex-maps package contains namespace ymaps
It has interface IEventManager
I want to add a new method to this interface.
I'm trying to do this in my .d.ts file
declare namespace ymaps {
interface IEventManager {
once(types: string[][] | string[] | string, callback: (event: object | IEvent) => void, context?: object, priority?: number): this;
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question