Skip to content

@oona/vlo / index / SignalDef

Interface: SignalDef<T> ​

Defined in: sdk/ts/sdk/src/core/activity.ts:121

A defined signal: the value signal returns, passed to cmd.awaitSignal, cmd.awaitHuman and waitFor. T is the inferred payload type.

Type Parameters ​

T ​

T = unknown

Properties ​

hash ​

readonly hash: string

Defined in: sdk/ts/sdk/src/core/activity.ts:127

Content hash of name and the JSON schema. It is the version.


jsonSchema ​

readonly jsonSchema: Json

Defined in: sdk/ts/sdk/src/core/activity.ts:133

JSON Schema of schema, as registered with the host and used for the hash.


kind ​

readonly kind: "signal"

Defined in: sdk/ts/sdk/src/core/activity.ts:123

Discriminator the config loader uses to find signals among a module's exports.


name ​

readonly name: string

Defined in: sdk/ts/sdk/src/core/activity.ts:125

The name given to signal; the name a sender delivers the signal under.


schema ​

readonly schema: ZodType<T>

Defined in: sdk/ts/sdk/src/core/activity.ts:131

Payload schema, as given. A host that has the signal registered validates inbound payloads against it.


schemaRef ​

readonly schemaRef: string

Defined in: sdk/ts/sdk/src/core/activity.ts:129

${name}@${hash} — the schema_ref on the wire.