-
Notifications
You must be signed in to change notification settings - Fork 3
/
xstream.d.ts
46 lines (41 loc) · 1.66 KB
/
xstream.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
import {Stream, MemoryStream} from 'xstream';
import {StreamAdapter} from '@cycle/base';
import {XStreamAsyncSource} from './xstream-typings'
import {GetResponse, GetProgressiveResponse, ResponseStream} from './index.d.ts'
export function makeAsyncDriver<Response, Request>
(getResponse: GetResponse<Request, Response>):
(sink$: Stream<Request>, runSA: StreamAdapter) => XStreamAsyncSource<Request, Response>
export function makeAsyncDriver
<Request, Response>(
params: {
getResponse: GetResponse<Request, Response>
lazy?: boolean
}):
(sink$: Stream<Request>, runSA: StreamAdapter) => XStreamAsyncSource<Request, Response>
export function makeAsyncDriver
<Request, Response>(
params: {
getProgressiveResponse: GetProgressiveResponse<Request, Response>
lazy?: boolean
}):
(sink$: Stream<Request>, runSA: StreamAdapter) => XStreamAsyncSource<Request, Response>
export function makeAsyncDriver
<Request, NormalizedRequest, Response>(
params: {
getResponse: GetResponse<NormalizedRequest, Response>
normalizeRequest?(request: Request): NormalizedRequest,
isolateMap?(request: Request): NormalizedRequest,
lazy?: boolean
}):
(sink$: Stream<Request>, runSA: StreamAdapter) =>
XStreamAsyncSource<NormalizedRequest, Response>
export function makeAsyncDriver
<Request, NormalizedRequest, Response>(
params: {
getProgressiveResponse: GetProgressiveResponse<NormalizedRequest, Response>
normalizeRequest?(request: Request): NormalizedRequest,
isolateMap?(request: Request): NormalizedRequest,
lazy?: boolean
}):
(sink$: Stream<Request>, runSA: StreamAdapter) =>
XStreamAsyncSource<NormalizedRequest, Response>