feat(typescript-types): Add Assign<Shape,Defaults,Obj>
This commit is contained in:
@@ -27,3 +27,11 @@ The types included in this library are categorized by their purpose.
|
||||
| [`OptionalKeysOf<T>`][] | A union of all keys of `T` that are marked as optional. If `T` is a union, a union of the optional keys of all union members of `T` is returned. |
|
||||
|
||||
[`OptionalKeysOf<T>`]: src/optional-keys-of.ts
|
||||
|
||||
#### Combination Types
|
||||
|
||||
| Type | Description |
|
||||
| ---------------------------------- | ----------------------------------------------------------------------------------------------------------------------- |
|
||||
| [`Assign<Shape, Defaults, Obj>`][] | Return a type with the structure of `Shape` and value types from `Obj` or `Default` for missing optional keys in `Obj`. |
|
||||
|
||||
[`Assign<Shape, Defaults, Obj>`]: src/assign.ts
|
||||
|
||||
Reference in New Issue
Block a user