Skip to main content
Products
Open Source
Deno
Modern runtime for JavaScript and TypeScript
Fresh
Web framework designed for the edge
JSR
TypeScript-first ESM package registry
Commercial
Deno for Enterprise
Enterprise support for runtime projects
Deploy
Easy serverless hosting for your JavaScript projects
Subhosting
Securely run untrusted code in a scalable sandbox
Docs
Modules
Standard Library
JSR
Node.js & npm
Current path
deno.land/x
Community
Discord
GitHub
X
YouTube
Mastodon
Blog
Search…
⌘K
Module
x
/
monads
/
index.ts
>
None
👻 Option, Result, and Either types for TypeScript; Inspired by Rust
sniptt-official/monads
Version
Latest
v0.5.10
v0.5.9
v0.5.8
v0.5.7
v0.5.6
v0.5.5
v0.5.4
v0.5.3
v0.5.2
v0.5.1
v0.3.4
v0.3.3
v0.3.2
v0.3.1
v0.3.0
v0.2.0
Menu
either
option
result
mod.ts
(default module)
I
Either
I
Option
I
Result
v
None
f
Err
f
isErr
f
isLeft
f
isNone
f
isOk
f
isRight
f
isSome
f
Left
f
Ok
f
Right
f
Some
index.ts
I
Either
I
Option
I
Result
v
None
f
Err
f
isErr
f
isLeft
f
isNone
f
isOk
f
isRight
f
isSome
f
Left
f
Ok
f
Right
f
Some
variable
None
import
{
None
}
from
"https://deno.land/x/monads@v0.5.10/index.ts"
;