Update index.d.ts

Add Monitor
This commit is contained in:
rjpackito
2017-11-29 12:01:30 +03:00
committed by GitHub
parent 779a35bfdb
commit b783642bfb

View File

@@ -1,6 +1,8 @@
// Type definitions for yandex-maps 2.1
// Project: https://github.com/Delagen/typings-yandex-maps
// Definitions by: Delagen <https://github.com/Delagen>
// <https://github.com/rjpackito>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.4
@@ -3036,4 +3038,12 @@ declare namespace ymaps {
shift(offset: number[]): IShape;
}
class Monitor {
constructor(dataManager: IDataManager | IOptionManager);
add(name: string[] | string, changeCallback: (event: (object | IEvent)) => void, context: any = null, params: any = null): Monitor;
forceChange(): Monitor;
get(name: string): any;
remove(name: string): Monitor;
removeAll(): Monitor;
}
}