Skip to content

Make URLPatternResult properties mandatory#2183

Merged
jakebailey merged 2 commits into
microsoft:mainfrom
Renegade334:urlpattern-result-properties
Oct 1, 2025
Merged

Make URLPatternResult properties mandatory#2183
jakebailey merged 2 commits into
microsoft:mainfrom
Renegade334:urlpattern-result-properties

Conversation

@Renegade334

Copy link
Copy Markdown
Contributor

One of those cases where a "return value" dictionary is being generated as an interface with optional properties.

These aren't explicitly marked as required in the IDL, but are mandatorily assigned in the URLPattern spec. Having these as optional properties in TS is just going to be a usability headache.

Refs: https://urlpattern.spec.whatwg.org/#url-pattern-match
Refs: DefinitelyTyped/DefinitelyTyped#73799 (comment)

@github-actions

github-actions Bot commented Oct 1, 2025

Copy link
Copy Markdown
Contributor

Thanks for the PR!

This section of the codebase is owned by @saschanaz - if they write a comment saying "LGTM" then it will be merged.

@jakebailey

Copy link
Copy Markdown
Member

Does URLPatternComponentResult need to also have this done to it?

@Renegade334

Copy link
Copy Markdown
Contributor Author

Yarp. Good spot.

@saschanaz

Copy link
Copy Markdown
Contributor

LGTM, thanks!

@github-actions

github-actions Bot commented Oct 1, 2025

Copy link
Copy Markdown
Contributor

There was an issue merging, maybe try again saschanaz. Details

@jakebailey
jakebailey merged commit 8339493 into microsoft:main Oct 1, 2025
6 checks passed
@Renegade334
Renegade334 deleted the urlpattern-result-properties branch October 2, 2025 00:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants