MCPcopy Index your code
hub / github.com/triggerdotdev/trigger.dev / attachToClient

Method attachToClient

packages/trigger-sdk/src/job.ts:123–126  ·  view source on GitHub ↗

* Attaches the job to a client. This is called automatically when you define a job using `client.defineJob()`.

(client: TriggerClient)

Source from the content-addressed store, hash-verified

121 * Attaches the job to a client. This is called automatically when you define a job using `client.defineJob()`.
122 */
123 attachToClient(client: TriggerClient) {
124 client.attach(this);
125 return this;
126 }
127
128 get id() {
129 return slugifyId(this.options.id);

Callers 1

edge-cases.tsFile · 0.80

Calls 1

attachMethod · 0.80

Tested by

no test coverage detected