1 | import { Observable } from 'rxjs';
|
2 | /**
|
3 | * Determines the unwrapping behavior of asynchronous resolve values.
|
4 | *
|
5 | * - When an Observable is returned from the resolveFn, wait until the Observable emits at least one item.
|
6 | * If any other value will be converted to an Observable that emits such value.
|
7 | * - The Observable item will not be unwrapped.
|
8 | * - The Observable stream itself will be provided when the resolve is injected or bound elsewhere.
|
9 | *
|
10 | * #### Example:
|
11 | *
|
12 | * The `Transition` will wait for the `main.home` resolve observables to emit their first value.
|
13 | * Promises will be unwrapped and returned as observables before being provided to components.
|
14 | * ```js
|
15 | * var mainState = {
|
16 | * name: 'main',
|
17 | * resolve: mainResolves, // defined elsewhere
|
18 | * resolvePolicy: { async: RXWAIT },
|
19 | * }
|
20 | * ```
|
21 | */
|
22 | export declare function RXWAIT(resolveFnValue: Observable<any> | any): Promise<Observable<any>>;
|