Skip to content

Commit

Permalink
feat(mod): export all modules
Browse files Browse the repository at this point in the history
  • Loading branch information
TomokiMiyauci committed Jul 5, 2023
1 parent 0a2cc20 commit 3e02b30
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions mod.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
// Copyright © 2023 Tomoki Miyauchi. All rights reserved. MIT license.
// This module is browser compatible.

/** Optional values.
* Type `Option` represents an optional value: every `Option` is either `Some` and contains a value, or `None`, and does not.
*
* ## Querying the variant
* The `isSome` and `isNone` return `true` if the `Option` is `Some` or `None`,
* respectively.
*
* @module
*/

export { None, type Option, Some } from "./spec.ts";
export {
filter,
flat,
map,
mapOr,
mapOrElse,
zip,
} from "./operators/transform.ts";
export { isNone, isSome } from "./operators/query.ts";
export { and, andThen, or, orElse, xor } from "./operators/logical.ts";
export {
expect,
match,
type Matcher,
unwrap,
unwrapOr,
unwrapOrElse,
} from "./operators/extract.ts";

0 comments on commit 3e02b30

Please sign in to comment.