garycourt / uri-js

An RFC 3986 compliant, scheme extendable URI parsing/validating/normalizing/resolving library for JavaScript
Other
305 stars 69 forks source link

Export types other than `URIComponents` #91

Open dmsehuang opened 1 year ago

dmsehuang commented 1 year ago

Hi there, this library is awesome! However, when I am trying to use it to parse a mailto protocol string, I can't access the to properties in the URIComponents interface.

Can you please export types/interfaces such as MailToComponents so that I don't need to do this:

const { to } = URI.parse(url) as MailtoComponents;