Typeberry by Fluffy Labs - v0.4.0
Preparing search index...
lib
state
tryAsPerCore
Function tryAsPerCore
tryAsPerCore
<
T
>
(
array
:
T
[]
,
spec
:
ChainSpec
,
)
:
readonly
T
[]
&
pvm
.
WithOpaque
<
"number of cores"
>
Check if given array has correct length before casting to the opaque type.
Type Parameters
T
Parameters
array
:
T
[]
spec
:
ChainSpec
Returns
readonly
T
[]
&
pvm
.
WithOpaque
<
"number of cores"
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Typeberry by Fluffy Labs - v0.4.0
Loading...
Check if given array has correct length before casting to the opaque type.