Skip to content

instanceof AjaxError no longer possible since 7.0.0-rc.0 #6269

@OliverJAsh

Description

@OliverJAsh

Bug Report

Current Behavior
In 7.0.0-beta.15 this did not error.

In 7.0.0-rc.0 and above, this results in an error.

import { AjaxError } from 'rxjs/ajax';
declare const error: unknown;
// Error:
// The right-hand side of an 'instanceof' expression must be of type 'any' or of a type assignable to the 'Function' interface type.
error instanceof AjaxError;

Expected behavior
No error


I glanced at the changelog but nothing stood out: https://github.com/ReactiveX/rxjs/blob/master/CHANGELOG.md#700-rc0-2021-04-19.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions