Skip to content

Spreading one named tuple in another throws an error #43516

@pushkine

Description

@pushkine

TS stable and nightly
Playground Link

type T0 = [...[bar: string]] // = [bar: string]
type T1 = [foo: string, ...[bar: string]] // Error : Tuple members must all have names or all not have names. (5084)

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