Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/polkadot/types-codec/mod.ts>Result.with

Package publishing for deno.land/x/polkadot
Go to Latest
method Result.with
import { Result } from "https://deno.land/x/polkadot@0.2.28/types-codec/mod.ts";

Type Parameters

O extends Codec
E extends Codec

Parameters

Types: { Ok: CodecClass<O> | string; Err: CodecClass<E> | string; }

Returns

CodecClass<Result<O, E>>