x/monads/docs/interfaces/optnone.md
@hqoss/monads › Globals › OptNone
Interface: OptNone ‹T›
Type parameters
▪ T
Hierarchy
Option‹T›
↳ OptNone
Index
Properties
Methods
Properties
type
• type: symbol
Defined in lib/option/option.ts:12
Methods
and
▸ and‹U›(optb
: Option‹U›): OptNone‹U›
Defined in lib/option/option.ts:35
Type parameters:
▪ U
Parameters:
Name | Type |
---|---|
optb |
Option‹U› |
Returns: OptNone‹U›
andThen
▸ andThen‹U›(fn
: function): Option‹U›
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
Defined in lib/option/option.ts:14
Returns: boolean
isSome
▸ isSome(): boolean
Defined in lib/option/option.ts:13
Returns: boolean
map
▸ map‹U›(fn
: function): OptNone‹U›
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
▸ match‹U›(fn
: Match‹T, U›): U
Defined in lib/option/option.ts:15
Type parameters:
▪ U
Parameters:
Name | Type |
---|---|
fn |
Match‹T, U› |
Returns: U
or
▸ or‹U›(optb
: Option‹U›): Option‹U›
Defined in lib/option/option.ts:34
Type parameters:
▪ U
Parameters:
Name | Type |
---|---|
optb |
Option‹U› |
Returns: Option‹U›
unwrap
▸ unwrap(): never
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