aboutsummaryrefslogtreecommitdiff
path: root/stdlib
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2023-01-12 17:33:57 +0530
committerAkshay Nair <phenax5@gmail.com>2023-01-12 17:33:57 +0530
commit7a9520b3879bccb872aaca6245c92071a957deff (patch)
treea66f10b31a4ec9290897178cc1bc9627dbe65dc3 /stdlib
parent83b6bcaa81a645e1b3936d856fbb84ea219ee04e (diff)
downloadts-types-lang-7a9520b3879bccb872aaca6245c92071a957deff.tar.gz
ts-types-lang-7a9520b3879bccb872aaca6245c92071a957deff.zip
feat: adds try/catch effects
Diffstat (limited to 'stdlib')
-rw-r--r--stdlib/exception.ts5
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 {}