LastT<Value>: Value extends string ? string | undefined : Value extends never[] ? undefined : Value extends [infer Last] ? Last : Value extends [...(infer Head), infer Last] ? Last : Value extends (infer Last)[] ? Last : undefined Type Parameters
- Value extends unknown[] | string