Skip to content

[Discussion] Support for tuple types #6

Open
@kakasoo

Description

@kakasoo

At the moment, we don't support tuple type, which is actually an array, pointing to [*]. We're thinking about whether to support it or not. If we support this type, it will be a number in parentheses. This requires very deep type reasoning, so performance issues may arise for users with less memory.

Expected

type Answer1 = DeepStrictObjectKeys<[]>; // never
type Answer2 = DeepStrictObjectKeys<['a']>; // '[*]'

Actual

type Answer1 = DeepStrictObjectKeys<[]>; // never
type Answer2 = DeepStrictObjectKeys<['a']>; // '[0]'

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions