Skip to content

@hey-api/angular-client. Not generating with Observable response #2746

@MichaelTScott

Description

@MichaelTScott

Hi, unsure where best to raise I've had a hunt around and can't find an answer but I suspect it might be a configuration issue:

@hey-api/openapi-ts: 0.85.0
@angular: 20.3.2
openapi spec: 3.1.0

using the legacy/angular client I get as expected function definitions with Observable<...> return type

However using '@hey-api/client-angular' the response type is always RequestResult type aka a Promise
I'd rather not have to wrap service calls everywhere to convert promises to observables

config:

export default default defineConfig({
  input: ...,
  output: ...,
  plugins: [
    '@hey-api/client-angular'
    {
      useClass: true,
      name: '@hey-api/sdk
    }
  ]
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🔥Something isn't workingclientClient package related

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions