Skip to content

#47341 breaks knockout.mapping tests on Definitely Typed #47371

Description

Knockout.mapping tests rely on the old signature relation rules. The repro is fairly small:

interface Kow<T> {
    (value: T): void;
}
declare var src: Kow<true> | Kow<false>;
var tgt: Kow<boolean> = src;

Expected: src assignable to target.
Actual: Error, type 'boolean' is not assignable to type 'false'.

Activity

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

Metadata

Metadata

Labels

Working as IntendedThe behavior described is the intended behavior; this is not a bug

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions