fix: Optional input

This commit is contained in:
J H
2024-07-25 13:25:18 -06:00
parent 099b77cf9b
commit 1a0536d212
6 changed files with 35 additions and 9 deletions

View File

@@ -64,7 +64,7 @@ const runType = object({
input: any,
timeout: number,
},
["timeout"],
["timeout", "input"],
),
})
const sandboxRunType = object({
@@ -77,7 +77,7 @@ const sandboxRunType = object({
input: any,
timeout: number,
},
["timeout"],
["timeout", "input"],
),
})
const callbackType = object({

View File

@@ -232,7 +232,7 @@ export class SystemForEmbassy implements System {
effects: Effects,
options: {
procedure: JsonPath
input: unknown
input?: unknown
timeout?: number | undefined
},
): Promise<RpcResult> {
@@ -294,7 +294,7 @@ export class SystemForEmbassy implements System {
effects: Effects,
options: {
procedure: JsonPath
input: unknown
input?: unknown
timeout?: number | undefined
},
): Promise<unknown> {

View File

@@ -75,7 +75,7 @@ export class SystemForStartOs implements System {
effects: Effects,
options: {
procedure: Procedure
input: unknown
input?: unknown
timeout?: number | undefined
},
): Promise<RpcResult> {
@@ -137,7 +137,7 @@ export class SystemForStartOs implements System {
effects: Effects | MainEffects,
options: {
procedure: Procedure
input: unknown
input?: unknown
timeout?: number | undefined
},
): Promise<unknown> {
@@ -219,7 +219,7 @@ export class SystemForStartOs implements System {
async sandbox(
effects: Effects,
options: { procedure: Procedure; input: unknown; timeout?: number },
options: { procedure: Procedure; input?: unknown; timeout?: number },
): Promise<RpcResult> {
return this.execute(effects, options)
}