function createClassimport { createClass } from "https://dotland.deno.dev/x/polkadot@0.2.35/types/bundle.ts"; createClass<T extends Codec = Codec, K extends string = string>(registry: Registry, type: K): CodecClass<DetectCodec<T, K>>Type ParametersoptionalT extends Codec = CodecoptionalK extends string = stringParametersregistry: Registrytype: KReturnsCodecClass<DetectCodec<T, K>>