diff --git a/src/internal/config.ts b/src/internal/config.ts index 8d5d875702b..67c565b7683 100644 --- a/src/internal/config.ts +++ b/src/internal/config.ts @@ -28,9 +28,9 @@ export const config = { * we do not want errors thrown in this user-configured handler to interfere with the * behavior of the library. */ - onStoppedNotification: undefined as + onStoppedNotification: null as | ((notification: { kind: 'N'; value: any } | { kind: 'E'; error: any } | { kind: 'C' }, subscriber: Subscriber) => void) - | undefined, + | null, /** * The promise constructor used by default for methods such as