这是indexloc提供的服务,不要输入任何密码
Skip to content

(@hey-api/sdk) Seperate parameters instead of single object #2965

@fiftyy

Description

@fiftyy

Description

Hi, right now, the generated functions take a single object as a parameter, which contains all the request fields.

For example:

ServersService.updateConfig({ id: this.server.id, serverConfig: this.server.serverConfig });

I would like the generator to create functions that use separate parameters instead of a single object, like this:

ServersService.updateConfig(this.server.id, this.server.serverConfig);

Add a configuration property, something like: separateParameters: boolean

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions