UNPKG

1.19 kBTypeScriptView Raw
1/// <reference types="node" />
2import { Observable } from '../observer';
3/** @ignore */
4export declare const isFunction: (x: any) => x is Function;
5/** @ignore */
6export declare const isObject: (x: any) => x is Object;
7/** @ignore */
8export declare const isPromise: (x: any) => x is PromiseLike<any>;
9/** @ignore */
10export declare function isArrayLike(x: any): x is ArrayLike<any>;
11/** @ignore */
12export declare function isIterable(x: any): x is Iterable<any>;
13/** @ignore */
14export declare function isIterator(x: any): x is Iterable<any>;
15/** @ignore */
16export declare function isAsyncIterable(x: any): x is AsyncIterable<any>;
17/** @ignore */
18export declare function isObservable(x: any): x is Observable<any>;
19/** @ignore */
20export declare const isReadableNodeStream: (x: any) => x is NodeJS.ReadableStream;
21/** @ignore */
22export declare const isWritableNodeStream: (x: any) => x is NodeJS.WritableStream;
23/** @ignore */
24export declare const isReadableDOMStream: <T = any>(x: any) => x is ReadableStream<T>;
25/** @ignore */
26export declare const isWritableDOMStream: <T = any>(x: any) => x is WritableStream<T>;
27/** @ignore */
28export declare const isFetchResponse: (x: any) => x is Response;