method Result.withimport { Result } from "https://deno.land/x/polkadot@0.2.28/types-codec/mod.ts"; with<O extends Codec, E extends Codec>(Types: { Ok: CodecClass<O> | string; Err: CodecClass<E> | string; }): CodecClass<Result<O, E>>Type ParametersO extends CodecE extends CodecParametersTypes: { Ok: CodecClass<O> | string; Err: CodecClass<E> | string; }ReturnsCodecClass<Result<O, E>>