Skip to content

Excess property checks still appear in presence of index signature #44793

Closed
@DanielRosenwasser

Description

@DanielRosenwasser
interface A {
    a?: string
    b?: number
    [key: symbol]: string
}

const symbolKey = Symbol('key')

const a: A = {
    [symbolKey]: '123',
}

symbol still not working:ts playground

Originally posted by @liuweiGL in #44512 (comment)

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptFix AvailableA PR has been opened for this issue

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions