From 69f9dd1ede00a60f8c68d5cc9d24dea2e1182474 Mon Sep 17 00:00:00 2001 From: Samual Date: Tue, 7 May 2024 10:30:34 +0100 Subject: [PATCH] style change --- env.d.ts | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/env.d.ts b/env.d.ts index 807587b..7b03a3d 100644 --- a/env.d.ts +++ b/env.d.ts @@ -4,15 +4,11 @@ type ScriptFailure = { ok: false, msg?: string } type ScriptResponse = ScriptSuccess | ScriptFailure type ErrorScripts = Record ScriptFailure> -type AllOptional = { - [K in keyof T]-?: {} extends Pick ? true : false -}[keyof T] +type AllOptional = { [K in keyof T]-?: {} extends Pick ? true : false }[keyof T] type Scriptor = { - name: string, - call: AllOptional extends true - ? (args?: Args) => Ret - : (args: Args) => Ret + name: string + call: AllOptional extends true ? (args?: Args) => Ret : (args: Args) => Ret } type Subscripts = Record any>> & { -- knotmirror 0.0.1