diff --git a/src/ui/map.ts b/src/ui/map.ts index b5f1de9a5aa..d397e90c49f 100644 --- a/src/ui/map.ts +++ b/src/ui/map.ts @@ -992,7 +992,7 @@ export class Map extends Camera { * @example * const bounds = map.getBounds(); */ - getBounds(): LngLatBounds | null { + getBounds(): LngLatBounds { return this.transform.getBounds(); }