Skip to content

Commit efac2d0

Browse files
committed
refactor(google-maps): improve addListener type
1 parent d538d4c commit efac2d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/google-maps/map-event-manager.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ import {switchMap} from 'rxjs/operators';
1212

1313
type MapEventManagerTarget =
1414
| {
15-
addListener<T>(
15+
addListener<T extends unknown[]>(
1616
name: string,
17-
callback: (args: T) => void,
17+
callback: (...args: T) => void,
1818
): google.maps.MapsEventListener | undefined;
1919
}
2020
| undefined;

0 commit comments

Comments
 (0)