aboutsummaryrefslogtreecommitdiff
path: root/stdlib
diff options
context:
space:
mode:
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