Skip to content

Conversation

@dynst
Copy link

@dynst dynst commented Nov 16, 2025

Description:

Replace a bunch of any types with either unknown or a more specific type.

But two are harder to replace, changing them causes type errors:

constructor(destination: Subscriber<any> | Partial<Observer<any>> | ((value: any) => void) | null, overrides: SubscriberOverrides<T>);

function handleStoppedNotification(notification: ObservableNotification<any>, subscriber: Subscriber<any>) {

  Type 'Subscriber<T>' is not assignable to type 'Subscriber<unknown>'.
    Type 'unknown' is not assignable to type 'T'.

BREAKING CHANGE:

Related issue (if exists):

Part of the 8.x roadmap in #6367

Replace all external uses of any with unknown. (This could likely be non-breaking, FWIW.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant