config.d.ts 860 B

123456789101112131415161718192021
  1. /**
  2. * The global configuration object for RxJS, used to configure things
  3. * like what Promise contructor should used to create Promises
  4. */
  5. export declare const config: {
  6. /**
  7. * The promise constructor used by default for methods such as
  8. * {@link toPromise} and {@link forEach}
  9. */
  10. Promise: PromiseConstructorLike;
  11. /**
  12. * If true, turns on synchronous error rethrowing, which is a deprecated behavior
  13. * in v6 and higher. This behavior enables bad patterns like wrapping a subscribe
  14. * call in a try/catch block. It also enables producer interference, a nasty bug
  15. * where a multicast can be broken for all observers by a downstream consumer with
  16. * an unhandled error. DO NOT USE THIS FLAG UNLESS IT'S NEEDED TO BY TIME
  17. * FOR MIGRATION REASONS.
  18. */
  19. useDeprecatedSynchronousErrorHandling: boolean;
  20. };