Skip to content

Commit 9b0911d

Browse files
committed
fix: mapIds can be a string[] as well
1 parent a16176c commit 9b0911d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/2.0/loader.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export type APIOptions = {
2020
language?: string;
2121
region?: string;
2222
authReferrerPolicy?: string;
23-
mapIds?: string;
23+
mapIds?: string | string[];
2424
channel?: string;
2525
solutionChannel?: string;
2626
};
@@ -53,7 +53,7 @@ export function bootstrapLoader(options: APIOptions) {
5353
for (const [name, value] of Object.entries(options)) {
5454
urlParameters.set(
5555
name.replace(/[A-Z]/g, (t) => "_" + t[0].toLowerCase()),
56-
value
56+
value as string
5757
);
5858
}
5959
urlParameters.set("callback", `google.maps.__ib__`);

0 commit comments

Comments
 (0)