( ...elements: T )
| 206 | * @since 2.0.0 |
| 207 | */ |
| 208 | export const tuple = <T extends ReadonlyArray<Order<any>>>( |
| 209 | ...elements: T |
| 210 | ): Order<Readonly<{ [I in keyof T]: [T[I]] extends [Order<infer A>] ? A : never }>> => all(elements) as any |
| 211 | |
| 212 | /** |
| 213 | * This function creates and returns a new `Order` for an array of values based on a given `Order` for the elements of the array. |