diff --git a/types/defines/wfp.d.ts b/types/defines/wfp.d.ts index 68468261f2f..75b2c7e225f 100644 --- a/types/defines/wfp.d.ts +++ b/types/defines/wfp.d.ts @@ -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; } diff --git a/types/generated-snapshot/experimental/index.d.ts b/types/generated-snapshot/experimental/index.d.ts index a24240d382e..38e66113b77 100755 --- a/types/generated-snapshot/experimental/index.d.ts +++ b/types/generated-snapshot/experimental/index.d.ts @@ -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, diff --git a/types/generated-snapshot/experimental/index.ts b/types/generated-snapshot/experimental/index.ts index a221881cb04..ac3c9f0e9b7 100755 --- a/types/generated-snapshot/experimental/index.ts +++ b/types/generated-snapshot/experimental/index.ts @@ -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, diff --git a/types/generated-snapshot/latest/index.d.ts b/types/generated-snapshot/latest/index.d.ts index 989b8c88bbf..3ff39f0a77e 100755 --- a/types/generated-snapshot/latest/index.d.ts +++ b/types/generated-snapshot/latest/index.d.ts @@ -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, diff --git a/types/generated-snapshot/latest/index.ts b/types/generated-snapshot/latest/index.ts index ed0c2cd4c74..119a66a8fb7 100755 --- a/types/generated-snapshot/latest/index.ts +++ b/types/generated-snapshot/latest/index.ts @@ -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,