diff options
| author | Akshay Nair <phenax5@gmail.com> | 2023-01-07 00:53:23 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2023-01-07 00:53:23 +0530 |
| commit | 2a0815eeb378b0140ef2885514715fb00db7a11e (patch) | |
| tree | 6e1c2e2e86269bae4a36f8ffac32d58ca5c6507c /stdlib/io.ts | |
| parent | d5d685253568f8c6855dd873ac3623e0af642d54 (diff) | |
| download | ts-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.ts | 15 |
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 { } + |
