From 8c348d3834fadd127130b17aad70d524fc91c2f6 Mon Sep 17 00:00:00 2001 From: Leehyunji0715 Date: Thu, 23 Nov 2023 21:11:48 +0900 Subject: [PATCH] refactor: remove duplicate configuration file --- packages/rxjs/src/internal/config.ts | 41 ---------------------------- 1 file changed, 41 deletions(-) delete mode 100644 packages/rxjs/src/internal/config.ts diff --git a/packages/rxjs/src/internal/config.ts b/packages/rxjs/src/internal/config.ts deleted file mode 100644 index eb576f72ea..0000000000 --- a/packages/rxjs/src/internal/config.ts +++ /dev/null @@ -1,41 +0,0 @@ -import { Subscriber } from './Observable.js'; -import { ObservableNotification } from './types.js'; - -/** - * The {@link GlobalConfig} object for RxJS. It is used to configure things - * like how to react on unhandled errors. - */ -export const config: GlobalConfig = { - onUnhandledError: null, - onStoppedNotification: null, -}; - -/** - * The global configuration object for RxJS, used to configure things - * like how to react on unhandled errors. Accessible via {@link config} - * object. - */ -export interface GlobalConfig { - /** - * A registration point for unhandled errors from RxJS. These are errors that - * cannot were not handled by consuming code in the usual subscription path. For - * example, if you have this configured, and you subscribe to an observable without - * providing an error handler, errors from that subscription will end up here. This - * will _always_ be called asynchronously on another job in the runtime. This is because - * we do not want errors thrown in this user-configured handler to interfere with the - * behavior of the library. - */ - onUnhandledError: ((err: any) => void) | null; - - /** - * A registration point for notifications that cannot be sent to subscribers because they - * have completed, errored or have been explicitly unsubscribed. By default, next, complete - * and error notifications sent to stopped subscribers are noops. However, sometimes callers - * might want a different behavior. For example, with sources that attempt to report errors - * to stopped subscribers, a caller can configure RxJS to throw an unhandled error instead. - * This will _always_ be called asynchronously on another job in the runtime. This is because - * we do not want errors thrown in this user-configured handler to interfere with the - * behavior of the library. - */ - onStoppedNotification: ((notification: ObservableNotification, subscriber: Subscriber) => void) | null; -}