6 lines
147 B
TypeScript
6 lines
147 B
TypeScript
type ConformsPredicateObject<T> = {
|
|
[P in keyof T]: T[P] extends (arg: infer A) => any ? A : any;
|
|
};
|
|
|
|
export type { ConformsPredicateObject };
|