Skip to content

Commit

Permalink
Merge pull request #2890 from cloudflare/workflows-sleep-type
Browse files Browse the repository at this point in the history
Fix type for sleep function in Workflows
  • Loading branch information
sidharthachatterjee authored Oct 10, 2024
2 parents e06b7a3 + edadb2d commit 07649d2
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions types/defines/rpc.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -230,10 +230,7 @@ declare module "cloudflare:workers" {
callback: () => Promise<T>,
config?: WorkflowStepConfig
) => Promise<T>;
sleep: (
name: string,
duration: WorkflowSleepDuration
) => void | Promise<void>;
sleep: (name: string, duration: WorkflowSleepDuration) => Promise<void>;
};

export abstract class Workflow<
Expand Down

0 comments on commit 07649d2

Please sign in to comment.