Open lukelafountaine opened 1 month ago
It might be something like this:
type NonFunctionPropertyNames<T> = { [K in keyof T]: T[K] extends Function ? never : K; }[keyof T]; export type PublicNonFunctionProperties<T> = Pick<T, NonFunctionPropertyNames<T>>;
cc @onebytegone
It might be something like this: