Skip to content

Hooks: explicit undefined values in params #376

@Cafe137

Description

@Cafe137

For example, bee.uploadFile takes a name that is string | undefined.

When I pass undefined, I get that back in params, and have to filter out undefined entries as a workaround.

This may not be ideal, since a naive implementation to list all available params would cause wrong URLs:

http://localhost:1633/bzz?name=undefined

or

http://localhost:1633/pss/send/A/ffff?recipient=undefined

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions