Cons
type-alias
stable
Constructs a new tuple with the specified type at the head. If you declare Cons<A, [B, C]>
you will get back [A, B, C]
.
type Cons<X, Y extends readonly any[]> = ((arg: X, ...rest: Y) => any) extends (...args: infer U) => any ? U : never;
© 2015–2021 Google, Inc., Netflix, Inc., Microsoft Corp. and contributors.
Code licensed under an Apache-2.0 License. Documentation licensed under CC BY 4.0.
https://rxjs.dev/api/index/type-alias/Cons