-
Notifications
You must be signed in to change notification settings - Fork 13.2k
Closed
Labels
DeclinedThe issue was declined as something which matches the TypeScript visionThe issue was declined as something which matches the TypeScript visionSuggestionAn idea for TypeScriptAn idea for TypeScript
Description
I think, tuple type should not have destructive methods because these methods break consistency between the interface and actual properties.
- Array#push
- Array#pop
- Array#shift
- Array#unshift
- Array#splice
var t: [boolean, number];
t.shift(); // now actual t type is [number]Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
DeclinedThe issue was declined as something which matches the TypeScript visionThe issue was declined as something which matches the TypeScript visionSuggestionAn idea for TypeScriptAn idea for TypeScript