Skip to content

Instantly share code, notes, and snippets.

@khusamov
Last active March 2, 2020 14:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save khusamov/3e04e15279551e22ff69655267c9d40a to your computer and use it in GitHub Desktop.
Save khusamov/3e04e15279551e22ff69655267c9d40a to your computer and use it in GitHub Desktop.
Добавление метода once() в интерфейс IEventManager из пакета @types/yandex-maps
declare module '@types/yandex-maps' {
import {IEvent} from '@types/yandex-maps';
declare namespace ymaps {
interface IEventManager {
once(types: string[][] | string[] | string, callback: (event: object | IEvent) => void, context?: object, priority?: number): this;
}
}
export = ymaps;
export as namespace ymaps;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment