Scale JS / @scale-codec/enum / VariantFactoryFn
Interface: VariantFactoryFn
@scale-codec/enum.VariantFactoryFn
Callable
VariantFactoryFn
▸ VariantFactoryFn<V
>(...args
): V
Type parameters
Name | Type |
---|---|
V | extends Variant <any , any , any , V > |
Parameters
Name | Type |
---|---|
...args | VariantToFactoryArgs <V > |
Returns
V
Defined in
VariantFactoryFn
▸ VariantFactoryFn<E
>(...args
): Enumerate
<E
>
Type parameters
Name | Type |
---|---|
E | extends EnumRecord |
Parameters
Name | Type |
---|---|
...args | VariantToFactoryArgs <Enumerate <E >> |
Returns
Enumerate
<E
>