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

x/monads/docs/interfaces/optnone.md

👻 Option, Result, and Either types for TypeScript; Inspired by Rust
Go to Latest
File

@hqoss/monadsGlobalsOptNone

Interface: OptNone ‹T

Type parameters

T

Hierarchy

Index

Properties

Methods

Properties

type

type: symbol

Inherited from Option.type

Defined in lib/option/option.ts:12

Methods

and

andU›(optb: Option‹U›): OptNone‹U›

Overrides Option.and

Defined in lib/option/option.ts:35

Type parameters:

U

Parameters:

Name Type
optb Option‹U›

Returns: OptNone‹U›


andThen

andThenU›(fn: function): Option‹U›

Inherited from Option.andThen

Defined in lib/option/option.ts:17

Type parameters:

U

Parameters:

fn: function

▸ (val: T): Option‹U›

Parameters:

Name Type
val T

Returns: Option‹U›


isNone

isNone(): boolean

Inherited from Option.isNone

Defined in lib/option/option.ts:14

Returns: boolean


isSome

isSome(): boolean

Inherited from Option.isSome

Defined in lib/option/option.ts:13

Returns: boolean


map

mapU›(fn: function): OptNone‹U›

Overrides Option.map

Defined in lib/option/option.ts:33

Type parameters:

U

Parameters:

fn: function

▸ (val: T): U

Parameters:

Name Type
val T

Returns: OptNone‹U›


match

matchU›(fn: Match‹T, U›): U

Inherited from Option.match

Defined in lib/option/option.ts:15

Type parameters:

U

Parameters:

Name Type
fn Match‹T, U›

Returns: U


or

orU›(optb: Option‹U›): Option‹U›

Overrides Option.or

Defined in lib/option/option.ts:34

Type parameters:

U

Parameters:

Name Type
optb Option‹U›

Returns: Option‹U›


unwrap

unwrap(): never

Overrides Option.unwrap

Defined in lib/option/option.ts:32

Returns: never


unwrapOr

unwrapOr(def: T): T

Inherited from Option.unwrapOr

Defined in lib/option/option.ts:20

Parameters:

Name Type
def T

Returns: T