AnyCatcher.ts 613 B

1234567891011121314
  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. * This is just a type that we're using to identify `any` being passed to
  9. * function overloads. This is used because of situations like {@link forkJoin},
  10. * where it could return an `Observable<T[]>` or an `Observable<{ [key: K]: T }>`,
  11. * so `forkJoin(any)` would mean we need to return `Observable<unknown>`.
  12. */
  13. export type AnyCatcher = typeof anyCatcherSymbol;