method types.TypeRegistry.prototype.getOrThrowimport { types } from "https://dotland.deno.dev/x/polkadot@0.2.38/mod.ts"; const { TypeRegistry } = types; getOrThrow<T extends Codec = Codec, K extends string = string, R = DetectCodec<T, K>>(name: K): CodecClass<R>Type ParametersoptionalT extends Codec = CodecoptionalK extends string = stringoptionalR = DetectCodec<T, K>Parametersname: KReturnsCodecClass<R>