Skip to content

Commit

Permalink
Add getCanvasContainer to types (#2356)
Browse files Browse the repository at this point in the history
Co-authored-by: Xiaoji Chen <[email protected]>
  • Loading branch information
2 people authored and chrisgervang committed Dec 19, 2024
1 parent 424b516 commit ec7f8bf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/types/lib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ export interface MapInstance extends Evented {

getCanvas(): HTMLCanvasElement;

getCanvasContainer(): HTMLElement;

remove(): void;

triggerRepaint(): void;
Expand Down Expand Up @@ -182,7 +184,7 @@ export interface ScaleControlInstance extends IControl {
/**
* A user-facing type that represents the minimal intersection between Mapbox and Maplibre
* User provided `mapLib` is supposed to implement this interface
* Only losely typed for compatibility
* Only loosely typed for compatibility
*/
export interface MapLib<MapT extends MapInstance> {
supported?: (options: any) => boolean;
Expand Down

0 comments on commit ec7f8bf

Please sign in to comment.