Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion types/defines/wfp.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@ interface DispatchNamespace {
* @param args Arguments to Worker script.
* @param options Options for Dynamic Dispatch invocation.
* @returns A Fetcher object that allows you to send requests to the Worker script.
* @throws If the Worker script does not exist in this dispatch namespace, an error will be thrown.
*
* Note: `get` does not validate that the named Worker script exists in the
* dispatch namespace. It always returns a Fetcher; if the script is missing,
* the resulting "Worker not found" error is surfaced when `fetch()` is
* invoked on the returned Fetcher.
*/
get(name: string, args?: {[key: string]: any}, options?: DynamicDispatchOptions ): Fetcher;
}
6 changes: 5 additions & 1 deletion types/generated-snapshot/experimental/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15848,7 +15848,11 @@ interface DispatchNamespace {
* @param args Arguments to Worker script.
* @param options Options for Dynamic Dispatch invocation.
* @returns A Fetcher object that allows you to send requests to the Worker script.
* @throws If the Worker script does not exist in this dispatch namespace, an error will be thrown.
*
* Note: `get` does not validate that the named Worker script exists in the
* dispatch namespace. It always returns a Fetcher; if the script is missing,
* the resulting "Worker not found" error is surfaced when `fetch()` is
* invoked on the returned Fetcher.
*/
get(
name: string,
Expand Down
6 changes: 5 additions & 1 deletion types/generated-snapshot/experimental/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15809,7 +15809,11 @@ export interface DispatchNamespace {
* @param args Arguments to Worker script.
* @param options Options for Dynamic Dispatch invocation.
* @returns A Fetcher object that allows you to send requests to the Worker script.
* @throws If the Worker script does not exist in this dispatch namespace, an error will be thrown.
*
* Note: `get` does not validate that the named Worker script exists in the
* dispatch namespace. It always returns a Fetcher; if the script is missing,
* the resulting "Worker not found" error is surfaced when `fetch()` is
* invoked on the returned Fetcher.
*/
get(
name: string,
Expand Down
6 changes: 5 additions & 1 deletion types/generated-snapshot/latest/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15180,7 +15180,11 @@ interface DispatchNamespace {
* @param args Arguments to Worker script.
* @param options Options for Dynamic Dispatch invocation.
* @returns A Fetcher object that allows you to send requests to the Worker script.
* @throws If the Worker script does not exist in this dispatch namespace, an error will be thrown.
*
* Note: `get` does not validate that the named Worker script exists in the
* dispatch namespace. It always returns a Fetcher; if the script is missing,
* the resulting "Worker not found" error is surfaced when `fetch()` is
* invoked on the returned Fetcher.
*/
get(
name: string,
Expand Down
6 changes: 5 additions & 1 deletion types/generated-snapshot/latest/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15141,7 +15141,11 @@ export interface DispatchNamespace {
* @param args Arguments to Worker script.
* @param options Options for Dynamic Dispatch invocation.
* @returns A Fetcher object that allows you to send requests to the Worker script.
* @throws If the Worker script does not exist in this dispatch namespace, an error will be thrown.
*
* Note: `get` does not validate that the named Worker script exists in the
* dispatch namespace. It always returns a Fetcher; if the script is missing,
* the resulting "Worker not found" error is surfaced when `fetch()` is
* invoked on the returned Fetcher.
*/
get(
name: string,
Expand Down
Loading