From 5dc7a5ec603acee8d79ef2a53b12212d29f7ef00 Mon Sep 17 00:00:00 2001 From: garo <3411715+garobrik@users.noreply.github.com> Date: Thu, 19 Feb 2026 14:29:40 -0800 Subject: [PATCH] fix: return type of getBounds method Previously, was inconsistent with the JSDoc by unnecessarily declaring a possible `null` return value. --- src/ui/map.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); }