-
Notifications
You must be signed in to change notification settings - Fork 11
types.utils
Ƭ ArgsType<T
>: T
extends (...args
: infer A) => unknown
? A
: never
Less strict version of Parameters<T>
Name |
---|
T |
Ƭ Ensured<T
, K
>: Required
<Pick
<T
, K
>> & { [SubKey in K]: NonNullable<T[SubKey]> }
Pick a single property from T and ensure it is defined
Name | Type |
---|---|
T |
T |
K |
extends keyof T
|
Ƭ HumanReadableType<T
>: T
extends Entity
<unknown
, infer H> ? HumanReadableType
<H
> : T
extends BigNumber
? string
: T
extends Date
? string
: T
extends object
? { [K in keyof T]: T[K] extends Entity<unknown, infer E> ? HumanReadableType<E> : HumanReadableType<T[K]> } : T
Recursively traverse a type and transform its Entity properties into their
human readable version (as if .toHuman
had been called on all of them)
Name |
---|
T |
Ƭ Modify<T
, R
>: Omit
<T
, keyof R
> & R
Override T with the properties of R
Name |
---|
T |
R |
Ƭ PaginatedQueryArgs<T
>: T
& { size?
: number
; start?
: number
}
Name |
---|
T |
Ƭ QueryArgs<T
, K
>: { [P in K]?: T[P] }
Name | Type |
---|---|
T |
T |
K |
extends keyof T
|
Ƭ WithRequired<T
, K
>: T
& { [P in K]-?: T[P] }
Ensure a specific property of T is defined
Name | Type |
---|---|
T |
T |
K |
extends keyof T
|
Entities
- Account
- Asset
- Authorization Request
- Checkpoint
- Checkpoint Schedule
- Corporate Action
- Corporate Action Base
- Custom Permission Group
- Default Portfolio
- Default Trusted Claim Issuer
- Dividend Distribution
- Entity
- Identity
- Instruction
- Known Permission Group
- Metadata Entry
- Multi Sig Proposal
- Numbered Portfolio
- Offering
- Permission Group
- Portfolio
- Subsidies
- Subsidy
- Ticker Reservation
- Venue
- Authorizations
- Types