PATH:
usr
/
local
/
lib
/
node_modules
/
ghost-cli
/
node_modules
/
rxjs
/
internal
/
observable
import { Observable } from '../Observable'; import { SchedulerLike } from '../types'; /** * The same Observable instance returned by any call to {@link empty} without a * `scheduler`. It is preferrable to use this over `empty()`. */ export declare const EMPTY: Observable<never>; /** * Creates an Observable that emits no items to the Observer and immediately * emits a complete notification. * * <span class="informal">Just emits 'complete', and nothing else. * </span> * *  * * This static operator is useful for creating a simple Observable that only * emits the complete notification. It can be used for composing with other * Observables, such as in a {@link mergeMap}. * * ## Examples * ### Emit the number 7, then complete * ```ts * import { empty } from 'rxjs'; * import { startWith } from 'rxjs/operators'; * * const result = empty().pipe(startWith(7)); * result.subscribe(x => console.log(x)); * ``` * * ### Map and flatten only odd numbers to the sequence 'a', 'b', 'c' * ```ts * import { empty, interval, of } from 'rxjs'; * import { mergeMap } from 'rxjs/operators'; * * const interval$ = interval(1000); * const result = interval$.pipe( * mergeMap(x => x % 2 === 1 ? of('a', 'b', 'c') : empty()), * ); * result.subscribe(x => console.log(x)); * * // Results in the following to the console: * // x is equal to the count on the interval eg(0,1,2,3,...) * // x will occur every 1000ms * // if x % 2 is equal to 1 print abc * // if x % 2 is not equal to 1 nothing will be output * ``` * * @see {@link Observable} * @see {@link never} * @see {@link of} * @see {@link throwError} * * @param scheduler A {@link SchedulerLike} to use for scheduling * the emission of the complete notification. * @return An "empty" Observable: emits only the complete * notification. * @deprecated Deprecated in favor of using {@link EMPTY} constant, or {@link scheduled} (e.g. `scheduled([], scheduler)`) */ export declare function empty(scheduler?: SchedulerLike): Observable<never>;
[-] race.d.ts
[edit]
[-] using.d.ts
[edit]
[-] zip.js.map
[edit]
[-] bindNodeCallback.d.ts
[edit]
[-] concat.js
[edit]
[-] fromEventPattern.js
[edit]
[-] combineLatest.js
[edit]
[-] using.js
[edit]
[-] fromArray.js.map
[edit]
[-] merge.d.ts
[edit]
[-] timer.d.ts
[edit]
[-] generate.js
[edit]
[-] generate.js.map
[edit]
[+]
dom
[+]
..
[-] defer.js
[edit]
[-] ConnectableObservable.d.ts
[edit]
[-] ConnectableObservable.js
[edit]
[-] SubscribeOnObservable.d.ts
[edit]
[-] concat.js.map
[edit]
[-] iif.d.ts
[edit]
[-] from.js.map
[edit]
[-] fromPromise.d.ts
[edit]
[-] range.js.map
[edit]
[-] partition.d.ts
[edit]
[-] generate.d.ts
[edit]
[-] interval.d.ts
[edit]
[-] merge.js.map
[edit]
[-] bindCallback.js
[edit]
[-] forkJoin.js.map
[edit]
[-] bindNodeCallback.js.map
[edit]
[-] SubscribeOnObservable.js
[edit]
[-] bindCallback.d.ts
[edit]
[-] never.d.ts
[edit]
[-] interval.js
[edit]
[-] fromPromise.js.map
[edit]
[-] empty.d.ts
[edit]
[-] of.js
[edit]
[-] ConnectableObservable.js.map
[edit]
[-] throwError.js.map
[edit]
[-] iif.js
[edit]
[-] timer.js.map
[edit]
[-] merge.js
[edit]
[-] defer.d.ts
[edit]
[-] from.d.ts
[edit]
[-] fromEventPattern.d.ts
[edit]
[-] bindCallback.js.map
[edit]
[-] range.d.ts
[edit]
[-] onErrorResumeNext.js
[edit]
[-] of.d.ts
[edit]
[-] zip.d.ts
[edit]
[-] onErrorResumeNext.js.map
[edit]
[-] partition.js
[edit]
[-] fromIterable.d.ts
[edit]
[-] never.js.map
[edit]
[-] fromPromise.js
[edit]
[-] pairs.js
[edit]
[-] timer.js
[edit]
[-] interval.js.map
[edit]
[-] zip.js
[edit]
[-] iif.js.map
[edit]
[-] fromEvent.d.ts
[edit]
[-] fromArray.js
[edit]
[-] race.js
[edit]
[-] range.js
[edit]
[-] race.js.map
[edit]
[-] forkJoin.js
[edit]
[-] bindNodeCallback.js
[edit]
[-] concat.d.ts
[edit]
[-] combineLatest.d.ts
[edit]
[-] forkJoin.d.ts
[edit]
[-] throwError.d.ts
[edit]
[-] throwError.js
[edit]
[-] fromArray.d.ts
[edit]
[-] onErrorResumeNext.d.ts
[edit]
[-] fromEvent.js
[edit]
[-] empty.js.map
[edit]
[-] defer.js.map
[edit]
[-] SubscribeOnObservable.js.map
[edit]
[-] pairs.d.ts
[edit]
[-] empty.js
[edit]
[-] pairs.js.map
[edit]
[-] fromIterable.js.map
[edit]
[-] never.js
[edit]
[-] fromEventPattern.js.map
[edit]
[-] combineLatest.js.map
[edit]
[-] partition.js.map
[edit]
[-] using.js.map
[edit]
[-] fromEvent.js.map
[edit]
[-] of.js.map
[edit]
[-] from.js
[edit]
[-] fromIterable.js
[edit]