Pezkuwi API
    Preparing search index...

    Class TypeRegistry

    Implements

    • Registry
    Index
    createdAtHash?: Hash
    • Type Parameters

      • T extends Codec = Codec
      • K extends string = string

      Parameters

      • type: K

      Returns CodecClass<DetectCodec<T, K>>

      Creates an instance of the class

    • Type Parameters

      • T extends Codec = Codec
      • K extends string = string

      Parameters

      • type: K

      Returns CodecClass<T>

      Creates an instance of the class

    • Parameters

      • lookupId: number | SiLookupTypeId

      Returns `Lookup${number}`

      Creates a lookup string from the supplied id

    • Type Parameters

      • T extends Codec = Codec
      • K extends string = string

      Parameters

      • type: K
      • ...params: unknown[]

      Returns DetectCodec<T, K>

      Creates an instance of a type as registered

    • Type Parameters

      • T extends Codec = Codec
      • K extends string = string

      Parameters

      • type: K
      • params: unknown[]
      • Optionaloptions: CodecCreateOptions

      Returns T

      Creates an instance of a type as registered

    • Parameters

      • errorIndex:
            | Uint8Array
            | DispatchErrorModule
            | DispatchErrorModuleU8a
            | DispatchErrorModuleU8

      Returns RegistryError

    • Type Parameters

      • T extends Codec = Codec
      • K extends string = string

      Parameters

      • name: K
      • OptionalwithUnknown: boolean
      • OptionalknownTypeDef: TypeDef

      Returns CodecClass<T, any[]> | undefined

    • Parameters

      • specName: AnyString
      • moduleName: string

      Returns string[] | undefined

    • Type Parameters

      • T extends Codec = Codec
      • K extends string = string
      • R = DetectCodec<T, K>

      Parameters

      • name: K

      Returns CodecClass<R>

    • Type Parameters

      • T extends Codec = Codec
      • K extends string = string
      • R = DetectCodec<T, K>

      Parameters

      • name: K

      Returns CodecClass<R>

    • Type Parameters

      • T extends Codec = Codec
      • K extends string = string

      Parameters

      • name: K
      • OptionalwithUnknown: boolean
      • OptionalknownTypeDef: TypeDef

      Returns CodecClass<T, any[]> | undefined

    • Parameters

      • value: string

      Returns value is `Lookup${number}`

      Returns true if the type is in a Compat format

    • Parameters

      • type: CodecClass<Codec, any[]> | RegistryTypes

      Returns void

    • Parameters

      • name: string
      • type: CodecClass

      Returns void

    • Parameters

      • Optionalproperties: ChainProperties

      Returns void

    • Parameters

      • metadata: Metadata
      • OptionalsignedExtensions: string[]
      • OptionaluserExtensions: ExtDef
      • OptionalnoInitWarn: boolean

      Returns void

    • Parameters

      • signedExtensions: string[] = fallbackExtensions
      • OptionaluserExtensions: ExtDef
      • OptionalnoInitWarn: boolean

      Returns void