cmux/node_modules/json-schema-to-ts/lib/utils/prepend.d.ts
2026-01-29 17:36:26 -08:00

8 lines
253 B
TypeScript

/**
* Inserts an element at the start of a tuple
*
* @param E Element (type)
* @param T Tuple
* @return Tuple
*/
export declare type Prepend<E, T extends any[]> = ((element: E, ...tail: T) => void) extends (...tuple: infer R) => void ? R : never;