diff options
| author | Akshay Nair <phenax5@gmail.com> | 2023-01-12 17:33:57 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2023-01-12 17:33:57 +0530 |
| commit | 7a9520b3879bccb872aaca6245c92071a957deff (patch) | |
| tree | a66f10b31a4ec9290897178cc1bc9627dbe65dc3 /stdlib | |
| parent | 83b6bcaa81a645e1b3936d856fbb84ea219ee04e (diff) | |
| download | ts-types-lang-7a9520b3879bccb872aaca6245c92071a957deff.tar.gz ts-types-lang-7a9520b3879bccb872aaca6245c92071a957deff.zip | |
feat: adds try/catch effects
Diffstat (limited to 'stdlib')
| -rw-r--r-- | stdlib/exception.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/stdlib/exception.ts b/stdlib/exception.ts new file mode 100644 index 0000000..731b3b0 --- /dev/null +++ b/stdlib/exception.ts @@ -0,0 +1,5 @@ +import { Effect, Kind1 } from "./effect"; + +export interface Try<_E extends Effect, _Catch extends Kind1> extends Effect {} + +export interface Throw<_E> extends Effect {} |
