Skip to main content

Module: utils/types

OmitTyped

OmitTyped: <T, K> Omit< T, K >

Omit doesnt enforce that the seconds generic is a keyof the first OmitTyped guards against the underlying type prop names being refactored, and not being updated in the usage of OmitTyped

Type parameters

Parameter
T
K extends keyof T

Source

arbitrum-sdk/src/lib/utils/types.ts:6


PartialPick

PartialPick: <T, K> OmitTyped< T, K > & Partial< T >

Make the specified properties optional

Type parameters

Parameter
T
K extends keyof T

Source

arbitrum-sdk/src/lib/utils/types.ts:11


RequiredPick

RequiredPick: <T, K> Required< Pick< T, K > > & T

Make the specified properties required

Type parameters

Parameter
T
K extends keyof T

Source

arbitrum-sdk/src/lib/utils/types.ts:16