diff options
| author | Akshay Nair <phenax5@gmail.com> | 2023-01-12 17:44:16 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2023-01-12 17:44:16 +0530 |
| commit | 3020be98876613b19dcc79f6cc8cade12460ba48 (patch) | |
| tree | d85b9c91bc1d467b351fb2a3dd4ca76dc44fdc50 | |
| parent | 7a9520b3879bccb872aaca6245c92071a957deff (diff) | |
| download | ts-types-lang-3020be98876613b19dcc79f6cc8cade12460ba48.tar.gz ts-types-lang-3020be98876613b19dcc79f6cc8cade12460ba48.zip | |
fix: stup[id annoying error gone for now but it will be back again with a vengeance
| -rw-r--r-- | stdlib/stdio.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/stdlib/stdio.ts b/stdlib/stdio.ts index e7d72f3..56b546d 100644 --- a/stdlib/stdio.ts +++ b/stdlib/stdio.ts @@ -8,4 +8,7 @@ export interface Debug<_ extends string, T> extends Effect<T> {} export interface ReadLine extends Effect<string> {} -export type PutStringLn<S extends string> = PutString<`${S}\n`> +export type PutStringLn<S extends string> = + S extends infer S extends string + ? PutString<`${S}\n`> + : never |
