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
readonlyhash:string
Defined in: sdk/ts/sdk/src/core/activity.ts:127
Content hash of name and the JSON schema. It is the version.
jsonSchema
readonlyjsonSchema: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
readonlykind:"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
readonlyname: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
readonlyschema: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
readonlyschemaRef:string
Defined in: sdk/ts/sdk/src/core/activity.ts:129
${name}@${hash} — the schema_ref on the wire.