aboutsummaryrefslogtreecommitdiff
path: root/docs/interfaces/effect.Label.md
blob: d007d64e72f0bb49ec0a9b3204dde4810a62583f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
[ts-types-lang](../README.md) / [Modules](../modules.md) / [effect](../modules/effect.md) / Label

# Interface: Label<_Name\>

[effect](../modules/effect.md).Label

Access a label defined with [BindTo](effect.BindTo.md)

**`Example`**

```ts
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 name of label |

## Hierarchy

- [`Effect`](effect.Effect.md)

  ↳ **`Label`**