Skip to content

WithRequiredProps

WithRequiredProps<T, K>: Partial<T> & Pick<T, K>

Type definition for an object with required properties.

Type parameters

T

The type of the object.

K extends keyof T

The keys of the required properties.

Source

src/utils/Types.ts:8