Skip to content

OptionalTupleLast

Category
Basic Operation

Make the last element of a tuple optional.

Usage

ts
import type { 
OptionalTupleLast
} from '@utype/core'
type
Tuple
= [string, number, boolean];
// Expect: [string, number, boolean?] type
OptionalTuple
=
OptionalTupleLast
<
Tuple
>;