ok-fp 0.2.2 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -12,11 +12,11 @@ It provides a minimal set of **typed effects**: composable, type-safe wrappers f
12
12
 
13
13
  | Effect | Description |
14
14
  | ------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- |
15
- | [`Option<T>`](./docs/option.md) | A value that may or may not be present. Use instead of `null`/`undefined`. |
16
- | [`Either<E, T>`](./docs/either.md) | A computation that succeeds with `T` or fails with a typed error `E`. Errors are explicit and must be handled. |
17
- | [`Validation<E, T>`](./docs/validation.md) | Like `Either`, but accumulates **all** errors instead of stopping at the first one. Ideal for form and config validation. |
18
- | [`Task<T>`](./docs/task.md) | A lazy async computation that always succeeds. Executes only when `.run()` is called - unlike Promises, which are eager. |
19
- | [`TaskEither<E, T>`](./docs/task-either.md) | A lazy async computation that can succeed with `T` or fail with `E`. Combines `Task`'s laziness with `Either`'s typed errors. |
15
+ | [`Option<T>`](https://pwlmc.github.io/ok-fp/option) | A value that may or may not be present. Use instead of `null`/`undefined`. |
16
+ | [`Either<E, T>`](https://pwlmc.github.io/ok-fp/either) | A computation that succeeds with `T` or fails with a typed error `E`. Errors are explicit and must be handled. |
17
+ | [`Validation<E, T>`](https://pwlmc.github.io/ok-fp/validation) | Like `Either`, but accumulates **all** errors instead of stopping at the first one. Ideal for form and config validation. |
18
+ | [`Task<T>`](https://pwlmc.github.io/ok-fp/task) | A lazy async computation that always succeeds. Executes only when `.run()` is called - unlike Promises, which are eager. |
19
+ | [`TaskEither<E, T>`](https://pwlmc.github.io/ok-fp/task-either) | A lazy async computation that can succeed with `T` or fail with `E`. Combines `Task`'s laziness with `Either`'s typed errors. |
20
20
 
21
21
  ## Installation
22
22
 
@@ -34,7 +34,7 @@ npm install ok-fp
34
34
  This example shows a small pipeline using `Option`.
35
35
 
36
36
  ```ts
37
- import { type Option, some, none } from "ok-fp/option";
37
+ import { type Option, some, none } from "ok-fp";
38
38
 
39
39
  const parseNumber = (input: string): Option<number> => {
40
40
  const n = Number(input);