function createTypeimport { createType } from "https://deno.land/x/polkadot@0.2.17/types/create/index.ts"; createType<T extends Codec = Codec, K extends string = string>(registry: Registry,type: K,...params: unknown[],): DetectCodec<T, K>Create an instance of a type with a given params. Type ParametersoptionalT extends Codec = CodecoptionalK extends string = stringParametersregistry: Registry A recognizable string representing the type to create an instance from type: K The value to instantiate the type with ...params: unknown[]ReturnsDetectCodec<T, K>