From c09485ed5d852f3710c8d4e231d2a7403db0d815 Mon Sep 17 00:00:00 2001 From: Noam Lin Date: Sun, 20 Aug 2023 22:08:49 +0300 Subject: [PATCH] fix missing types (#2259) --- src/mapbox/create-ref.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mapbox/create-ref.ts b/src/mapbox/create-ref.ts index 0566c214..dd7f6d17 100644 --- a/src/mapbox/create-ref.ts +++ b/src/mapbox/create-ref.ts @@ -40,7 +40,7 @@ export default function createRef< StyleT extends MapStyle, CallbacksT extends Callbacks, MapT extends MapInstance ->(mapInstance: Mapbox): MapRef { +>(mapInstance: Mapbox): MapRef | null { if (!mapInstance) { return null; } @@ -90,7 +90,7 @@ export default function createRef< return result; } -function getMethodNames(obj) { +function getMethodNames(obj: Object) { const result = new Set(); let proto = obj;