File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1- type Replace < A , B > = Omit < A , keyof B > & B
2- type ScriptSuccess < T = unknown > = { ok : true } & T
3- type ScriptFailure = { ok : false , msg ?: string }
4- type ScriptResponse < T = unknown > = ScriptSuccess < T > | ScriptFailure
1+ type Replace < A , B > = Omit < A , keyof B > & BigInt
52type ErrorScripts = Record < string , ( ) => ScriptFailure >
63
74type Subscripts = Record < string , Record < string , ( ...args : any ) => any > > & {
@@ -891,6 +888,9 @@ type MongoProject<TDocument, TProjection> =
891888type DeepFreeze < T > = { readonly [ P in keyof T ] : DeepFreeze < T [ P ] > }
892889
893890declare global {
891+ type ScriptSuccess < T = unknown> = { ok : true } & T
892+ type ScriptFailure = { ok : false , msg ?: string }
893+ type ScriptResponse < T = unknown > = ScriptSuccess < T > | ScriptFailure
894894 type Scriptor < TArgs extends any [ ] = any [ ] > = { name : string , call : ( ...args : TArgs ) => unknown }
895895 type Context = CliContext | SubscriptContext | ScriptorContext | BrainContext
896896 type ObjectId = { $oid : string }
You can’t perform that action at this time.
0 commit comments