@tempots/ui
ExtractParamsFromTuple type
Extracts the parameter names from a tuple type.
Signature:
export type ExtractParamsFromTuple<S extends unknown[]> = S extends [] ? [] : S extends [infer H, ...infer R] ? H extends `:${infer P}` ? [P, ...ExtractParamsFromTuple<R>] : ExtractParamsFromTuple<R> : never;
References: ExtractParamsFromTuple