Skip to content
Type

SetOptional

Sets all keys K of T to be optional.

ts
type SetOptional<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;

Used by

Released under the Mozilla Public License 2.0.