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

NameType
TT
Keysextends keyof T = keyof T

Defined in

src/shared/utils/types.ts:12


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

Defined in

src/shared/utils/types.ts:20

Was this helpful?