Skip to content

Commit

Permalink
Try to update yandex-maps for TS 4.7 (DefinitelyTyped#59575)
Browse files Browse the repository at this point in the history
Adds missing type parameter constraints
  • Loading branch information
weswigham authored Mar 29, 2022
1 parent 3788098 commit 907e66c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions types/yandex-maps/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -837,7 +837,7 @@ declare namespace ymaps {
getLength(): number;
}

class Manager<TargetGeometry = {}> implements IEventManager<TargetGeometry> {
class Manager<TargetGeometry extends {} = {}> implements IEventManager<TargetGeometry> {
constructor(params?: { context?: object | undefined; controllers?: IEventWorkflowController[] | undefined; parent?: IEventManager | undefined });

add<K extends keyof EventMap>(types: K, callback: (event: (IEvent<EventMap[K], TargetGeometry>)) => void, context?: object, priority?: number): this;
Expand Down Expand Up @@ -3259,7 +3259,7 @@ declare namespace ymaps {
};
}

class GeoObject<T = IGeometry, TargetGeometry = {}> implements IGeoObject<T> {
class GeoObject<T = IGeometry, TargetGeometry extends {} = {}> implements IGeoObject<T> {
constructor(feature?: IGeoObjectFeature, options?: IGeoObjectOptions);

geometry: T | null;
Expand Down

0 comments on commit 907e66c

Please sign in to comment.