Skip to main content
Module

x/careful/src/containers/Option.ts

Safe containerization of values for TypeScript
Latest
import * as careful from "https://deno.land/x/careful@v0.1.0/src/containers/Option.ts";

Classes

None is a type that represents no value. It is similar to the Nothing type in Haskell.

OptionAbstract is a type that represents either a value or no value. It is similar to the Maybe type in Haskell.

Some is a type that represents a value. It is similar to the Just type in Haskell.

Variables

None - Creates a new None instance.

Some - Creates a new Some instance.

Type Aliases

Option is a type that represents either a value or no value. It is similar to the Maybe type in Haskell.