Skip to content

why doesn't this work? #6538

Closed
Closed
@zpdDG4gta8XKpMCd

Description

@zpdDG4gta8XKpMCd
interface X { x: number; }
interface Y { y: number; }
interface Named { name: string; }
interface Z { z: number; }
type W = (X | Y) & Named | Z;
function isNamed(w: W): w is Named {
    return undefined;
}

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    QuestionAn issue which isn't directly actionable in code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions