Debian Codegraph @

node/rxjs/src/internal/AnyCatcher.ts

raw
1 /*
2 * Note that we cannot apply the `internal` tag here because the declaration
3 * needs to survive the `stripInternal` option. Otherwise, `AnyCatcher` will
4 * be `any` in the `.d.ts` files.
5 */
6 declare const anyCatcherSymbol: unique symbol;
7
8 /**
9 * This is just a type that we're using to identify `any` being passed to
10 * function overloads. This is used because of situations like {@link forkJoin},
11 * where it could return an `Observable<T[]>` or an `Observable<{ [key: K]: T }>`,
12 * so `forkJoin(any)` would mean we need to return `Observable<unknown>`.
13 */
14 export type AnyCatcher = typeof anyCatcherSymbol;