Skip to content

request: name/resolve - non-stream API #246

@tennox

Description

@tennox

I found that while I can use the non-streaming variant of the IPNS resolve API, it's neither straight-forward nor agreeable to typescript:

for await (const result of kuboClient.name.resolve(ipns, { stream: false })) {
	return result && CID.parse(result)
}

Is it rather unusual to not want to stream?
Also - while we're at it - when would there be multiple results and how to I check which one is the latest?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions