JS API Reference
Module: shared/utils/types
Table of contents
Type Aliases
Type Aliases
RequireAtLeastOne
Ƭ RequireAtLeastOne<T, Keys>: Pick<T, Exclude<keyof T, Keys>> & { [K in Keys]-?: Required<Pick<T, K>> & Partial<Pick<T, Exclude<Keys, K>>> }[Keys]
Type parameters
| Name | Type |
|---|---|
T | T |
Keys | extends keyof T = keyof T |
Defined in
ElementOf
Ƭ ElementOf<T>: T extends infer U[] ? U : never
Utility type extracting the type of the element of a typed array
Type parameters
| Name |
|---|
T |