跳到內容

candidate

本頁內容尚未翻譯。

function candidate(options: {
artifact: {
directory: string
identity: {
algorithm: "sha256"
digest: string
entry: string
version: 1
}
}
contractModule: string
input: Json
target:
| {
_tag: "Worker"
execArgv?: readonly string[]
}
| {
_tag: "Local"
command?: readonly [string, string]
}
}): Candidate

Defined in: internal/candidate.ts:33

Parameter Type
options { artifact: { directory: string; identity: { algorithm: "sha256"; digest: string; entry: string; version: 1; }; }; contractModule: string; input: Json; target: | { _tag: "Worker"; execArgv?: readonly string[]; } | { _tag: "Local"; command?: readonly [string, string]; }; }
options.artifact? { directory: string; identity: { algorithm: "sha256"; digest: string; entry: string; version: 1; }; }
options.artifact.directory? string
options.artifact.identity? { algorithm: "sha256"; digest: string; entry: string; version: 1; }
options.artifact.identity.algorithm? "sha256"
options.artifact.identity.digest? string
options.artifact.identity.entry? string
options.artifact.identity.version? 1
options.contractModule? string
options.input? Json
options.target? | { _tag: "Worker"; execArgv?: readonly string[]; } | { _tag: "Local"; command?: readonly [string, string]; }

Candidate