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

7 lines
219 B
TypeScript

/**
* Remove the first element of a tuple
*
* @param T Tuple
* @return Tuple
*/
export declare type Tail<T> = T extends any[] ? ((...args: T) => void) extends (head: any, ...tail: infer R) => void ? R : T : never;