Skip to content

Commit ec7f8bf

Browse files
georgemoonPessimistress
authored andcommitted
Add getCanvasContainer to types (#2356)
Co-authored-by: Xiaoji Chen <[email protected]>
1 parent 424b516 commit ec7f8bf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/types/lib.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ export interface MapInstance extends Evented {
7777

7878
getCanvas(): HTMLCanvasElement;
7979

80+
getCanvasContainer(): HTMLElement;
81+
8082
remove(): void;
8183

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

0 commit comments

Comments
 (0)