Preparing search index...
The search index is not available
@anchor-lang/core - v1.0.1
@anchor-lang/core
DecodeType
Type alias DecodeType<T, Defined>
Decode
Type
<
T
,
Defined
>
:
IdlType
extends
T
?
unknown
:
T
extends
keyof
TypeMap
?
TypeMap
[
T
]
:
T
extends
{
defined
:
{
name
:
keyof
Defined
;
}
;
}
?
Defined
[
T
[
"defined"
]
[
"name"
]
]
:
T
extends
{
option
:
IdlType
;
}
?
DecodeType
<
T
[
"option"
]
,
Defined
>
|
null
:
T
extends
{
coption
:
IdlType
;
}
?
DecodeType
<
T
[
"coption"
]
,
Defined
>
|
null
:
T
extends
{
vec
:
IdlType
;
}
?
DecodeType
<
T
[
"vec"
]
,
Defined
>
[]
:
T
extends
{
array
:
[
defined
:
IdlType
,
size
:
IdlArrayLen
]
;
}
?
DecodeType
<
(
...
)
[
(
...
)
]
[
0
]
,
Defined
>
[]
:
unknown
Type Parameters
T
extends
IdlType
Defined
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
@anchor-lang/core - v1.0.1
Loading...