Sometimes, when defining a new type, tsc
could not infer the initial type of
Obj
or Key
. For example, ContractMethodNames
for the plain Contract is forced to be never
.
This type is used to bypass the initial typing, and get the actual type when
it is used.
Obj[key] if Key is keyof Obj
. Otherwise Default
is returned.
Generated using TypeDoc
Dynamically get the field type, even if
Key
is not a key ofObj
.