@mega-cycle/http
Version:
11 lines (10 loc) • 440 B
TypeScript
import { RequestOptions, HTTPSource } from '@cycle/http';
import { Stream } from 'xstream';
export declare const HTTP = "HTTP";
export interface HTTPSink {
type: typeof HTTP;
payload: RequestOptions;
}
export declare function makeMegaHTTPDriver(sinks: Stream<HTTPSink | any>): HTTPSource;
export declare function isHTTP(sinks: HTTPSink | any): sinks is HTTPSink;
export declare function wrapHTTP(request: RequestOptions): HTTPSink;