Skip to content

Conversation

Renegade334
Copy link
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)

Copy link
Contributor

github-actions bot commented Oct 1, 2025

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
Member

Does URLPatternComponentResult need to also have this done to it?

@Renegade334
Copy link
Contributor Author

Yarp. Good spot.

@saschanaz
Copy link
Contributor

LGTM, thanks!

Copy link
Contributor

github-actions bot commented Oct 1, 2025

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