···4444/* Takes a projection to a period in milliseconds and a source, and creates
4545 a listenable source that emits the last emitted value if no other value
4646 has been emitted during the passed debounce period. */
4747-let debounce: ('a => int, sourceT('a), sinkT('a)) => unit;
4747+let debounce: ((.'a) => int, sourceT('a), sinkT('a)) => unit;
48484949/* Takes a projection to a period in milliseconds and a source, and creates
5050 a listenable source that ignores values after the last emitted value for
5151 the duration of the returned throttle period. */
5252-let throttle: ('a => int, sourceT('a), sinkT('a)) => unit;
5252+let throttle: ((.'a) => int, sourceT('a), sinkT('a)) => unit;
53535454/* Takes a notifier source and an input source, and creates a sink & source.
5555 When the notifier emits a value, it will emit the value that it most recently
···63636464/* Converts a stream into a promise by resolving to the last value of the
6565 stream. */
6666-let toPromise: (sourceT('a)) => Js.Promise.t('a);
6666+let toPromise: sourceT('a) => Js.Promise.t('a);
···1313 for constructing any kind of asynchronous stream. The return
1414 callback from the passed observer function will be called when
1515 the stream is closed or ends */
1616-let make: (observerT('a) => (unit => unit), sinkT('a)) => unit;
1616+let make: ((.observerT('a)) => teardownT, sinkT('a)) => unit;
17171818/* Accepts a list and creates a pullable source for that list.
1919 The source will emit events when being pulled until the list
···4545 and creates a sink & source.
4646 All values that it receives will be transformed using the mapping
4747 function and emitted on the new source */
4848-let map: ('a => 'b, sourceT('a), sinkT('b)) => unit;
4848+let map: ((.'a) => 'b, sourceT('a), sinkT('b)) => unit;
49495050/* Takes a predicate function returning a boolean, and a source,
5151 and creates a sink & source.
5252 All values that it receives will be filtered using the predicate,
5353 and only truthy values will be passed on to the new source.
5454 The sink will attempt to pull a new value when one was filtered. */
5555-let filter: ('a => bool, sourceT('a), sinkT('a)) => unit;
5555+let filter: ((.'a) => bool, sourceT('a), sinkT('a)) => unit;
56565757/* Takes a reducer function, a seed value, and a source, and creates
5858 a sink & source.
···6666 and a source, and creates a sink & source.
6767 The mapping function is called with each value it receives and
6868 the resulting inner source is merged into the output source. */
6969-let mergeMap: ('a => sourceT('b), sourceT('a), sinkT('b)) => unit;
6969+let mergeMap: ((.'a) => sourceT('b), sourceT('a), sinkT('b)) => unit;
70707171/* Takes a mapping function from one types to a source output,
7272 and a source, and creates a sink & source.
7373 The mapping function is called with each value it receives and
7474 the latest inner source is merged into the output source. When
7575 a new value comes in the previous source is dicarded. */
7676-let switchMap: ('a => sourceT('b), sourceT('a), sinkT('b)) => unit;
7676+let switchMap: ((.'a) => sourceT('b), sourceT('a), sinkT('b)) => unit;
77777878/* Takes a mapping function from one types to a source output,
7979 and a source, and creates a sink & source.
8080 The mapping function is called with each value it receives and
8181 the resulting inner sources are subscribed to and piped through
8282 to the output source in order. */
8383-let concatMap: ('a => sourceT('b), sourceT('a), sinkT('b)) => unit;
8383+let concatMap: ((.'a) => sourceT('b), sourceT('a), sinkT('b)) => unit;
84848585/* Takes an array of sources and creates a sink & source.
8686 All values that the sink receives from all sources will be passed through
···127127 It will emit values that the sink receives until the predicate returns false
128128 for a value, at which point it will end the source and the returned, new
129129 source. */
130130-let takeWhile: ('a => bool, sourceT('a), sinkT('a)) => unit;
130130+let takeWhile: ((.'a) => bool, sourceT('a), sinkT('a)) => unit;
131131132132/* Takes a notifier source and an input source, and creates a sink & source.
133133 It will not emit values that the sink receives until the notifier source
···150150 It will not emit values that the sink receives until the passed predicate
151151 returns false for a value, at which point it will start acting like a noop
152152 operator, passing through every signal. */
153153-let skipWhile: ('a => bool, sourceT('a), sinkT('a)) => unit;
153153+let skipWhile: ((.'a) => bool, sourceT('a), sinkT('a)) => unit;
154154155155/* Takes a notifier source and an input source, and creates a sink & source.
156156 It will not emit values that the sink receives until the notifier source
-2
src/wonka_helpers.re
···11open Wonka_types;
2233-external identity: 'a => 'a = "%identity";
44-53let talkbackPlaceholder = (._: talkbackT) => ();
6475let captureTalkback = (