Skip to main content

RequireOnly type

Represents an object type where a subset of keys are required and everything else is optional.

Signature:

export type RequireOnly<T, K extends keyof T> = Required<Pick<T, K>> & Partial<T>