function types.createClassimport { types } from "https://dotland.deno.dev/x/polkadot@0.2.38/mod.ts"; const { createClass } = types; 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>>