From 7cc7aedddb8236b9b652dc0cf855ddae97937036 Mon Sep 17 00:00:00 2001 From: gimy Date: Sun, 1 Oct 2023 14:22:56 +0800 Subject: [PATCH] fix: fixed type error --- src/MethodRecommender.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MethodRecommender.ts b/src/MethodRecommender.ts index b0f8e54..48d964b 100644 --- a/src/MethodRecommender.ts +++ b/src/MethodRecommender.ts @@ -3,7 +3,7 @@ import { CountryMethods } from './data/methods' import type { LngLatLike } from './types/LangLatLike' import type { Methods } from './types/Methods' -const methodsMap = new WeakMap( +const methodsMap = new WeakMap( Object.entries(CountryMethods).map(([country, methods]) => [Symbol(country), methods]) )