Skip to content

Http-client-js operation response on the client doesn't carry the return type #11853

Description

The return type is infered from the call of the dedicated function but for readability it should be good to repeat it

Playground Link

Actual

  async test(options?: TestOptions) {
    return test(this.#context, options);
  }
export async function test(
  client: SClientContext,
  options?: TestOptions,
): Promise<string> {

Expected

  async test(options?: TestOptions): Promise<string> {
    return test(this.#context, options);
  }

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    emitter:client:jsIssue for the JS client emitter: @typespec/http-client-js

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions