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 bfa4697ec49..31c75d85a13 100755 --- a/types/generated-snapshot/experimental/index.d.ts +++ b/types/generated-snapshot/experimental/index.d.ts @@ -16771,7 +16771,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 228d3afe78c..bbbe071c8a2 100755 --- a/types/generated-snapshot/experimental/index.ts +++ b/types/generated-snapshot/experimental/index.ts @@ -16732,7 +16732,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 0b19a5d8838..58097fc55b1 100755 --- a/types/generated-snapshot/latest/index.d.ts +++ b/types/generated-snapshot/latest/index.d.ts @@ -16103,7 +16103,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 a3272dc99c9..f1979d3e125 100755 --- a/types/generated-snapshot/latest/index.ts +++ b/types/generated-snapshot/latest/index.ts @@ -16064,7 +16064,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,