From c474d2ae64bb7b07629c22b79edade5646ed1afa Mon Sep 17 00:00:00 2001 From: Samual Date: Sun, 24 Nov 2024 19:47:36 +0000 Subject: [PATCH] make `ScriptSuccess`, `ScriptFailure`, and `ScriptResponse` global --- env.d.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/env.d.ts b/env.d.ts index 2b8ccc8..ebcf763 100644 --- a/env.d.ts +++ b/env.d.ts @@ -1,7 +1,4 @@ -type Replace = Omit & B -type ScriptSuccess = { ok: true } & T -type ScriptFailure = { ok: false, msg?: string } -type ScriptResponse = ScriptSuccess | ScriptFailure +type Replace = Omit & BigInt type ErrorScripts = Record ScriptFailure> type Subscripts = Record any>> & { @@ -891,6 +888,9 @@ type MongoProject = type DeepFreeze = { readonly [P in keyof T]: DeepFreeze } declare global { + type ScriptSuccess = { ok: true } & T + type ScriptFailure = { ok: false, msg?: string } + type ScriptResponse = ScriptSuccess | ScriptFailure type Scriptor = { name: string, call: (...args: TArgs) => unknown } type Context = CliContext | SubscriptContext | ScriptorContext | BrainContext type ObjectId = { $oid: string } -- knotmirror 0.0.1