interface DispatchNamespace {
    get(name, args?, options?): Fetcher<undefined, never>;
}

Methods

Methods

  • Parameters

    • name: string

      Name of the Worker script.

    • Optional args: {
          [key: string]: any;
      }

      Arguments to Worker script.

      • [key: string]: any
    • Optional options: DynamicDispatchOptions

      Options for Dynamic Dispatch invocation.

    Returns Fetcher<undefined, never>

    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.