blob: c797208a462ce72d84097a1993c0399e59696c7a (
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
|
[ts-types-lang](../README.md) / [Modules](../modules.md) / [exception](../modules/exception.md) / Try
# Interface: Try<_E, _Catch\>
[exception](../modules/exception.md).Try
Generic interface for declaring effects
**`Example`**
```ts
interface MyEffect extends Effect<string[]> {}
```
## Type parameters
| Name | Type | Description |
| :------ | :------ | :------ |
| `_E` | extends [`Effect`](effect.Effect.md) | The output generated by the effect (defaults to `unknown`) |
| `_Catch` | extends [`Func`](../modules/effect.md#func) | - |
## Hierarchy
- [`Effect`](effect.Effect.md)
↳ **`Try`**
|