fix(createKeyedSignal): Fix types on key selector overload

This commit is contained in:
Víctor Oliva 2021-04-01 09:29:08 +02:00 committed by Josep M Sobrepere
parent 7c84ed50d9
commit c9d1864f58

View File

@ -22,7 +22,7 @@ export function createKeyedSignal<T>(): [
*/
export function createKeyedSignal<T, K, A extends any[]>(
keySelector: (signal: T) => K,
): [(key: K) => GroupedObservable<K, T>, (key: K) => void]
): [(key: K) => GroupedObservable<K, T>, (signal: T) => void]
/**
* Creates a "keyed" signal. It's sugar for splitting the Observer and the Observable of a keyed signal.