Generics
Limiting Acceptable Types
type RecursivePartialBy<T, K extends keyof T> = Omit<T, K> &
RecursivePartial<Pick<T, K>>;Conditional Typing
type TypeDataPartial<T> = T extends { type_data: unknown }
? RecursivePartialBy<T, "type_data">
: T;Last updated