diff options
| author | Akshay Nair <phenax5@gmail.com> | 2023-01-15 00:13:04 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2023-01-15 00:13:04 +0530 |
| commit | d5c3af89ab8076bcf4107859c1ba6b47a7815142 (patch) | |
| tree | 1da469a7007fe2cfced0647ae62c1cd003a3fa0d /docs/interfaces/effect.Label.md | |
| parent | e75a5a15912b8f297fe9c9747f574486d6c4e334 (diff) | |
| download | ts-types-lang-d5c3af89ab8076bcf4107859c1ba6b47a7815142.tar.gz ts-types-lang-d5c3af89ab8076bcf4107859c1ba6b47a7815142.zip | |
chore: some more documentation
Diffstat (limited to 'docs/interfaces/effect.Label.md')
| -rw-r--r-- | docs/interfaces/effect.Label.md | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/docs/interfaces/effect.Label.md b/docs/interfaces/effect.Label.md index f4d9c2c..d007d64 100644 --- a/docs/interfaces/effect.Label.md +++ b/docs/interfaces/effect.Label.md @@ -4,19 +4,22 @@ [effect](../modules/effect.md).Label -Generic interface for declaring effects +Access a label defined with [BindTo](effect.BindTo.md) **`Example`** ```ts -interface MyEffect extends Effect<string[]> {} +type main = Do<[ + BindTo<"contents", ReadFile<"./file.txt">>, + Bind<Label<"contents">, <c extends string>() => Print<c>> +]> ``` ## Type parameters | Name | Type | Description | | :------ | :------ | :------ | -| `_Name` | extends `string` | The output generated by the effect (defaults to `unknown`) | +| `_Name` | extends `string` | The name of label | ## Hierarchy |
