Skip to main content
Module

x/polkadot/types/types/index.ts>IOption

Package publishing for deno.land/x/polkadot
Go to Latest
interface IOption
implements Codec
Re-export
import { type IOption } from "https://deno.land/x/polkadot@0.2.40/types/types/index.ts";

Type Parameters

optional
T extends Codec = Codec

Properties

readonly
isNone: boolean
readonly
isSome: boolean
readonly
value: Codec

Methods

unwrap(): T
unwrapOr<O>(other: O): T | O
unwrapOrDefault(): T