Skip to content

Commit 0e9f98d

Browse files
committed
change scriptor type to reflect scriptors only being able to take 1 argument
1 parent 2db6aca commit 0e9f98d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

env.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -885,7 +885,7 @@ declare global {
885885
type ScriptSuccess<T = unknown> = { ok: true } & T
886886
type ScriptFailure = { ok: false, msg?: string }
887887
type ScriptResponse<T = unknown> = ScriptSuccess<T> | ScriptFailure
888-
type Scriptor<TArgs extends any[] = any[]> = { name: string, call: (...args: TArgs) => unknown }
888+
type Scriptor<TArgs = any> = { name: string, call: (args: TArgs) => unknown }
889889
type Context = CliContext | SubscriptContext | ScriptorContext | BrainContext
890890
type ObjectId = { $oid: string }
891891

0 commit comments

Comments
 (0)