Skip to content

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

Closed
@sandersn

Description

@sandersn

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'.

Metadata

Metadata

Assignees

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