-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e6401b4
commit 7feb5ca
Showing
3 changed files
with
28 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,17 @@ | ||
export FL_TITLE="Functional" | ||
export FL_DESCRIPTION="Common Functional Programming Algebraic data types for JavaScript that is compatible with most modern browsers and Deno." | ||
export FL_VERSION="v1.3.0" | ||
export FL_DESCRIPTION="Common Functional Programming Algebraic data types for JavaScript that is compatible with most \ | ||
modern browsers and Deno." | ||
export FL_GITHUB_URL="https://github.com/sebastienfilion/functional" | ||
export FL_DENO_URL="https://deno.land/x/functional" | ||
export FL_VERSION="v1.3.1" | ||
|
||
deno run --allow-all --unstable ../@functional:generate-documentation/cli.js document "$FL_TITLE" "$FL_DESCRIPTION" $FL_VERSION ./.github/readme-fragment-usage.md ./library/*.js ./.github/readme-fragment-typescript.md ./.github/readme-fragment-license.md | ||
deno run --allow-all --unstable ../@functional:generate-documentation/cli.js document \ | ||
"$FL_TITLE" \ | ||
"$FL_DESCRIPTION" \ | ||
$FL_GITHUB_URL \ | ||
$FL_DENO_URL \ | ||
$FL_VERSION \ | ||
./.github/readme-fragment-usage.md \ | ||
./library/*.js \ | ||
./.github/readme-fragment-typescript.md \ | ||
./.github/readme-fragment-license.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,7 +40,7 @@ sayHello(userID).run() | |
|
||
### Using the bundle | ||
|
||
As a convenience, when using Functional in the browser, you can use the **unminified** bundled copy. | ||
As a convenience, when using Functional in the browser, you can use the **unminified** bundled copy (18KB gzipped). | ||
|
||
```js | ||
import { compose, converge, lift, map, prop } from "https://deno.land/x/[email protected]/mod.ts"; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,10 +2,10 @@ | |
|
||
Common Functional Programming Algebraic data types for JavaScript that is compatible with most modern browsers and Deno. | ||
|
||
[![deno land](http://img.shields.io/badge/available%20on-deno.land/x-lightgrey.svg?logo=deno&labelColor=black)](https://deno.land/x/functional-redis@v1.3.0) | ||
[![deno land](http://img.shields.io/badge/available%20on-deno.land/x-lightgrey.svg?logo=deno&labelColor=black)](https://deno.land/x/[email protected].1) | ||
[![deno version](https://img.shields.io/badge/deno-^1.6.1-lightgrey?logo=deno)](https://github.com/denoland/deno) | ||
[![GitHub release](https://img.shields.io/github/v/release/sebastienfilion/functional-redis)](https://github.com/sebastienfilion/functional-redis/releases) | ||
[![GitHub licence](https://img.shields.io/github/license/sebastienfilion/functional-redis)](https://github.com/sebastienfilion/functional-redis/blob/v1.3.0/LICENSE) | ||
[![GitHub release](https://img.shields.io/github/v/release/sebastienfilion/functional)](https://github.com/sebastienfilion/functional/releases) | ||
[![GitHub licence](https://img.shields.io/github/license/sebastienfilion/functional)](https://github.com/sebastienfilion/functional/blob/v1.3.1/LICENSE) | ||
|
||
* [Either](#either) | ||
* [IO](#io) | ||
|
@@ -545,7 +545,15 @@ returned. But if the container is `Either.Left`, it will throw an error with the | |
You can import any types or the factories through `mod.ts`. | ||
|
||
```ts | ||
import { Either, IO, Maybe, Task, factorizeType, factorySumType } from "https://deno.land/x/[email protected]/mod.ts"; | ||
import { | ||
Either, | ||
IO, | ||
Maybe, | ||
Pair, | ||
Task, | ||
factorizeType, | ||
factorySumType | ||
} from "https://deno.land/x/[email protected]/mod.ts"; | ||
``` | ||
|
||
Or, you can import individual sub-module with the appropriate TypeScript hint in Deno. | ||
|