Module
x/functional/.github/readme-fragment-typescript.md
Common Functional Programming Algebraic data types for JavaScript that is compatible with most modern browsers and Deno.
TypeScript
You can import any types or the factories through mod.ts
.
import {
Either,
IO,
Maybe,
Pair,
Task,
factorizeType,
factorySumType
} from "https://deno.land/x/functional@v1.3.0/mod.ts";
Or, you can import individual sub-module with the appropriate TypeScript hint in Deno.
// @deno-types="https://deno.land/x/functional@v1.3.0/library/Either.d.ts"
import Either from "https://deno.land/x/functional@v1.3.0/library/Either.js";