UNPKG

162 BTypeScriptView Raw
1export type OptionalKeys<Type> = Type extends object ? keyof {
2 [Key in keyof Type as Type extends Required<Pick<Type, Key>> ? never : Key]: never;
3} : never;