@aicacia/option
TypeScript icon, indicating that this package has built-in type declarations

0.1.2 • Public • Published

ts-option

license docs npm (scoped) build

aicacia option

import { Option, none } from "@aicacia/option";

const maybe = none<number>();

if (maybe.isNone()) {
  maybe.replace(1);
}

console.log(maybe.unwrap()); // 1

Readme

Keywords

Package Sidebar

Install

npm i @aicacia/option

Weekly Downloads

53

Version

0.1.2

License

(MIT OR Apache-2.0)

Unpacked Size

39.1 kB

Total Files

13

Last publish

Collaborators

  • nathanfaucett