UNPKG

319 BTypeScriptView Raw
1interface Props {
2 [key: string]: any;
3}
4type TupleTypes<T extends any[]> = T[number];
5type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (k: infer I) => void ? I : never;
6export declare function mergeProps<T extends Props>(...args: T[]): UnionToIntersection<TupleTypes<T[]>>;
7export {};