Skip to content
On this page

Scale JS / @scale-codec/core / VariantFactoryFn

Interface: VariantFactoryFn

@scale-codec/core.VariantFactoryFn

Callable

VariantFactoryFn

VariantFactoryFn<V>(...args): V

Type parameters

NameType
Vextends Variant<any, any, any, V>

Parameters

NameType
...argsVariantToFactoryArgs<V>

Returns

V

Defined in

packages/enum/src/lib.ts:28

VariantFactoryFn

VariantFactoryFn<E>(...args): Enumerate<E>

Type parameters

NameType
Eextends EnumRecord

Parameters

NameType
...argsVariantToFactoryArgs<Enumerate<E>>

Returns

Enumerate<E>

Defined in

packages/enum/src/lib.ts:29