callbag-concat
Advanced tools
Comparing version 1.2.0 to 1.2.1
{ | ||
"name": "callbag-concat", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "Callbag factory that concatenates data from multiple callbag sources", | ||
@@ -28,4 +28,4 @@ "repository": { | ||
"dependencies": { | ||
"callbag": "^1.1.0" | ||
"callbag": "^1.2.0" | ||
} | ||
} |
@@ -1,7 +0,5 @@ | ||
import { Source } from 'callbag'; | ||
import { Source, UnwrapSource } from 'callbag'; | ||
type SourceType<T extends Source<any>> = T extends Source<infer O> ? O : never; | ||
export default function concat<T extends Source<any>[]>( | ||
...sources: T | ||
): Source<SourceType<T[number]>>; | ||
): Source<UnwrapSource<T[number]>>; |
17464
605
Updatedcallbag@^1.2.0