Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Commit

Permalink
Merge pull request #98 from inyono/patch-1
Browse files Browse the repository at this point in the history
types: fix type of Cloudworker.dispatch
  • Loading branch information
hankjacobs authored Jun 23, 2019
2 parents 0eb17f0 + 02016b3 commit 1ddaf6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ declare interface CloudworkerInit {

declare class Cloudworker {
constructor (script: string, opts?: CloudworkerInit)
dispatch (request: Request): void
dispatch (request: Request): Promise<Response>
listen (...args: any[]): http.Server
}

Expand Down

0 comments on commit 1ddaf6e

Please sign in to comment.