-
Notifications
You must be signed in to change notification settings - Fork 630
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
suggestion: have url.dirname()
return string
instead of URL
#4967
Comments
url.basename()
return string
url.basename()
return string
instead of URL
Doesn't it already return strings https://jsr.io/@std/url/doc/~/basename ? |
url.basename()
return string
instead of URL
url.dirname()
return string
instead of URL
(sighs) I meant |
APIs in |
It makes sense for |
Both points of views make sense to me and are valid options. So it comes more down to what we expect developers to use it for. I'm trying to make a case from that perspective. In apps I've written the |
Alright. I'm unsure I fully agree, but let's leave it as-is. |
There was also a small discussion about |
It currently returns a
URL
instead of astring
. I find this behavior surprising, as it requires the user to call.href
in most cases. Do you have any thoughts, @marvinhagemeister?The text was updated successfully, but these errors were encountered: