const dynamicSchedule = client.defineDynamicSchedule({
  id: "dynamicinterval",
});

These are the docs for Trigger.dev v2 which will be deprecated on January 31st, 2025. You probably want the v3 docs.

Parameters

options
DynamicScheduleOptions
required

The options for the dynamic schedule.

Returns

DynamicSchedule instance
DynamicSchedule
const dynamicSchedule = client.defineDynamicSchedule({
  id: "dynamicinterval",
});