Types
11 snippets
At Least One Key
Ensures that at least one property of an object is required.
Deep Partial Type
Converts all properties of a type, including nested objects, into optional.
Deep Readonly Type
Converts all properties of a type, including nested objects, into readonly.
Deep Required Type
Converts all properties of a type, including nested objects, into required.
Exclusive Types
Allows to have a type which conforms to either/or.
Keys of Type
Extracts keys from an object type that match a specified value type.
Keys to Optional
Makes only the specified keys of an object type optional.
Nullable Keys
Extracts keys from an object type that allow null or undefined values.
Omit Keys of Type
Removes keys of a specified type from an object type.
Required Keys
Extracts required keys from an object.
Union to Intersection
Converts a union type into an intersection type.