Skip to content

Allow property (dotted) access syntax for types #12962

@normalser

Description

@normalser

This works:

interface Test {
    A: 'a' | 'b' | 'c'
}

function test(a: Test['A']) {
}
test('a')

Would be nice if we could use it as that:

function test2(a: Test.A) {
}
test2('a')

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