types(watch): allow readonly arrays for watching multiple sources (#281)
This commit is contained in:
@@ -56,7 +56,7 @@ export function watch<T>(
|
||||
): StopHandle
|
||||
|
||||
// overload #3: array of multiple sources + cb
|
||||
export function watch<T extends WatcherSource<unknown>[]>(
|
||||
export function watch<T extends readonly WatcherSource<unknown>[]>(
|
||||
sources: T,
|
||||
cb: (
|
||||
newValues: MapSources<T>,
|
||||
|
||||
Reference in New Issue
Block a user