From 3020be98876613b19dcc79f6cc8cade12460ba48 Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Thu, 12 Jan 2023 17:44:16 +0530 Subject: fix: stup[id annoying error gone for now but it will be back again with a vengeance --- stdlib/stdio.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'stdlib') 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 {} export interface ReadLine extends Effect {} -export type PutStringLn = PutString<`${S}\n`> +export type PutStringLn = + S extends infer S extends string + ? PutString<`${S}\n`> + : never -- cgit v1.3.1