Type Alias SequenceType<T>

SequenceType: T extends Sequence<infer Y> ? Y : never

Gets the sequence type.

type MySequence = Sequence<string>
type MySequenceType = SequenceType<MySequence>
// MySequenceType === string

Type Parameters

  • T