UNPKG

720 BTypeScriptView Raw
1import { Observable } from '../Observable';
2import { Subscriber } from '../Subscriber';
3import { OperatorFunction } from '../types';
4/**
5 * Used to determine if an object is an Observable with a lift function.
6 */
7export declare function hasLift(source: any): source is {
8 lift: InstanceType<typeof Observable>['lift'];
9};
10/**
11 * Creates an `OperatorFunction`. Used to define operators throughout the library in a concise way.
12 * @param init The logic to connect the liftedSource to the subscriber at the moment of subscription.
13 */
14export declare function operate<T, R>(init: (liftedSource: Observable<T>, subscriber: Subscriber<R>) => (() => void) | void): OperatorFunction<T, R>;
15//# sourceMappingURL=lift.d.ts.map
\No newline at end of file