Skip to content

Commit 1f7bc62

Browse files
authored
address user feedback (#391)
1 parent fcca7fd commit 1f7bc62

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

pages/docs/essentials/creating.mdx

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -209,18 +209,18 @@ Let's explore some common scenarios where `Effect.suspend` proves useful:
209209

210210
The table provides a summary of the available constructors, along with their input and output types, allowing you to choose the appropriate function based on your needs.
211211

212-
| **Function** | **Given** | **To** |
213-
| ----------------------- | ---------------------------------- | --------------------------- |
214-
| `succeed` | `A` | `Effect<never, never, A>` |
215-
| `fail` | `E` | `Effect<never, E, never>` |
216-
| `sync` | `() => A` | `Effect<never, never, A>` |
217-
| `try` | `() => A` | `Effect<never, unknown, A>` |
218-
| `try` (overload) | `() => A`, `unknown => E` | `Effect<never, E, A>` |
219-
| `promise` | `() => Promise<A>` | `Effect<never, never, A>` |
220-
| `tryPromise` | `() => Promise<A>` | `Effect<never, unknown, A>` |
221-
| `tryPromise` (overload) | `() => Promise<A>`, `unknown => E` | `Effect<never, E, A>` |
222-
| `async` | `Effect<never, E, A> => void` | `Effect<never, E, A>` |
223-
| `suspend` | `Effect<R, E, A>` | `Effect<R, E, A>` |
212+
| **Function** | **Given** | **To** |
213+
| ----------------------- | --------------------------------------- | ------------------------------------ |
214+
| `succeed` | `A` | `Effect<never, never, A>` |
215+
| `fail` | `E` | `Effect<never, E, never>` |
216+
| `sync` | `() => A` | `Effect<never, never, A>` |
217+
| `try` | `() => A` | `Effect<never, UnknownException, A>` |
218+
| `try` (overload) | `() => A`, `unknown => E` | `Effect<never, E, A>` |
219+
| `promise` | `() => Promise<A>` | `Effect<never, never, A>` |
220+
| `tryPromise` | `() => Promise<A>` | `Effect<never, UnknownException, A>` |
221+
| `tryPromise` (overload) | `() => Promise<A>`, `unknown => E` | `Effect<never, E, A>` |
222+
| `async` | `(Effect<never, E, A> => void) => void` | `Effect<never, E, A>` |
223+
| `suspend` | `() => Effect<R, E, A>` | `Effect<R, E, A>` |
224224

225225
You can find the complete list of constructors [here](https://effect-ts.github.io/io/modules/Effect.ts.html#constructors).
226226

pages/docs/essentials/pipeline.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ Let's summarize the transformation functions we have seen so far:
295295
| `map` | `Effect<R, E, A>`, `A => B` | `Effect<R, E, B>` |
296296
| `flatMap` | `Effect<R, E, A>`, `A => Effect<R, E, B>` | `Effect<R, E, B>` |
297297
| `tap` | `Effect<R, E, A>`, `A => Effect<R, E, B>` | `Effect<R, E, A>` |
298-
| `all` | `Effect<R, E, A>`, `Effect<R, E, B>`, ... | `Effect<R, E, [A, B, ...]>` |
298+
| `all` | `[Effect<R, E, A>, Effect<R, E, B>, ...]` | `Effect<R, E, [A, B, ...]>` |
299299

300300
These functions are powerful tools for transforming and chaining `Effect` computations. They allow you to apply functions to values inside `Effect` and build complex pipelines of computations.
301301

0 commit comments

Comments
 (0)