Add getCanvasContainer to types (#2356)

Co-authored-by: Xiaoji Chen <Pessimistress@users.noreply.github.com>
This commit is contained in:
George Moon 2024-12-19 08:38:22 +01:00 committed by Chris Gervang
parent 424b516562
commit ec7f8bf6e4
No known key found for this signature in database
GPG Key ID: 364F9E85BFA0CEE2

View File

@ -77,6 +77,8 @@ export interface MapInstance extends Evented {
getCanvas(): HTMLCanvasElement;
getCanvasContainer(): HTMLElement;
remove(): void;
triggerRepaint(): void;
@ -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;