aboutsummaryrefslogtreecommitdiff
path: root/stdlib/io.ts
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2023-01-07 00:53:23 +0530
committerAkshay Nair <phenax5@gmail.com>2023-01-07 00:53:23 +0530
commit2a0815eeb378b0140ef2885514715fb00db7a11e (patch)
tree6e1c2e2e86269bae4a36f8ffac32d58ca5c6507c /stdlib/io.ts
parentd5d685253568f8c6855dd873ac3623e0af642d54 (diff)
downloadts-types-lang-2a0815eeb378b0140ef2885514715fb00db7a11e.tar.gz
ts-types-lang-2a0815eeb378b0140ef2885514715fb00db7a11e.zip
refactor: moves stdlib around + package stuff
Diffstat (limited to 'stdlib/io.ts')
-rw-r--r--stdlib/io.ts15
1 files changed, 15 insertions, 0 deletions
diff --git a/stdlib/io.ts b/stdlib/io.ts
new file mode 100644
index 0000000..c78204f
--- /dev/null
+++ b/stdlib/io.ts
@@ -0,0 +1,15 @@
+export interface Effect<T = unknown> { output: T }
+
+export interface Kind1<Inp = unknown, Out = unknown> {
+ input: Inp
+ return: Out
+}
+
+export interface Bind<_Eff extends Effect, _Fn extends Kind1> extends Effect { }
+
+export interface Seq<_Effs extends Effect[]> extends Effect { }
+
+export interface Do<_Effs extends Effect[]> extends Effect { }
+
+export interface DefineEffect<_Name extends string, _Func extends string> extends Effect { }
+