aboutsummaryrefslogtreecommitdiff
path: root/stdlib
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2023-01-12 17:44:16 +0530
committerAkshay Nair <phenax5@gmail.com>2023-01-12 17:44:16 +0530
commit3020be98876613b19dcc79f6cc8cade12460ba48 (patch)
treed85b9c91bc1d467b351fb2a3dd4ca76dc44fdc50 /stdlib
parent7a9520b3879bccb872aaca6245c92071a957deff (diff)
downloadts-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
Diffstat (limited to 'stdlib')
-rw-r--r--stdlib/stdio.ts5
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