diff options
| author | Akshay Nair <phenax5@gmail.com> | 2023-01-09 20:13:33 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2023-01-09 20:13:33 +0530 |
| commit | 5aad91f273f39ba1a11143585835e757a57de234 (patch) | |
| tree | 28379cc54ccb1bdd3de2a4c639d24ea5dac82dd5 /stdlib | |
| parent | 2af211f1bd6a5c81ee7acd2ded2bfacf4dcfb2a4 (diff) | |
| download | ts-types-lang-5aad91f273f39ba1a11143585835e757a57de234.tar.gz ts-types-lang-5aad91f273f39ba1a11143585835e757a57de234.zip | |
refactor: moves stuff around
Diffstat (limited to '')
| -rw-r--r-- | stdlib/effect.ts (renamed from stdlib/io.ts) | 2 | ||||
| -rw-r--r-- | stdlib/fs.ts | 2 | ||||
| -rw-r--r-- | stdlib/index.ts | 4 | ||||
| -rw-r--r-- | stdlib/stdio.ts | 2 | ||||
| -rw-r--r-- | stdlib/sys.ts | 5 | ||||
| -rw-r--r-- | stdlib/util.ts | 2 |
6 files changed, 7 insertions, 10 deletions
diff --git a/stdlib/io.ts b/stdlib/effect.ts index c37cd32..5be1758 100644 --- a/stdlib/io.ts +++ b/stdlib/effect.ts @@ -13,5 +13,3 @@ 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 {} diff --git a/stdlib/fs.ts b/stdlib/fs.ts index f7014ff..fb269c2 100644 --- a/stdlib/fs.ts +++ b/stdlib/fs.ts @@ -1,4 +1,4 @@ -import { Effect } from './io' +import { Effect } from './effect' export interface WriteFile<_Path extends string, _Content extends string> extends Effect {} diff --git a/stdlib/index.ts b/stdlib/index.ts deleted file mode 100644 index 45197d9..0000000 --- a/stdlib/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -export * from './io' -export * from './fs' -export * from './stdio' -export * from './sys' diff --git a/stdlib/stdio.ts b/stdlib/stdio.ts index 77aa031..e7d72f3 100644 --- a/stdlib/stdio.ts +++ b/stdlib/stdio.ts @@ -1,4 +1,4 @@ -import { Effect } from './io' +import { Effect } from './effect' export interface PutString<_ extends string> extends Effect {} diff --git a/stdlib/sys.ts b/stdlib/sys.ts index afa5dbd..e170c6c 100644 --- a/stdlib/sys.ts +++ b/stdlib/sys.ts @@ -1,7 +1,10 @@ -import { Effect } from './io' +import { Effect } from './effect' export interface GetEnv<_Name extends string> extends Effect<string> {} export interface GetArgs extends Effect<string[]> {} export interface JsExpr<_Expr extends string> extends Effect<any> {} + +export interface DefineEffect<_Name extends string, _Func extends string> + extends Effect {} diff --git a/stdlib/util.ts b/stdlib/util.ts index 832b0cb..ded9983 100644 --- a/stdlib/util.ts +++ b/stdlib/util.ts @@ -1,4 +1,4 @@ -import { Kind1 } from './io' +import { Kind1 } from './effect' export type Let<f extends (...args: any) => any> = ReturnType<f> |
