Skip to content

Commit 8339493

Browse files
authored
Make URLPatternResult properties mandatory (#2183)
1 parent acf138d commit 8339493

13 files changed

+177
-132
lines changed

baselines/dom.generated.d.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2363,8 +2363,8 @@ interface ULongRange {
23632363
}
23642364

23652365
interface URLPatternComponentResult {
2366-
groups?: Record<string, string | undefined>;
2367-
input?: string;
2366+
groups: Record<string, string | undefined>;
2367+
input: string;
23682368
}
23692369

23702370
interface URLPatternInit {
@@ -2384,15 +2384,15 @@ interface URLPatternOptions {
23842384
}
23852385

23862386
interface URLPatternResult {
2387-
hash?: URLPatternComponentResult;
2388-
hostname?: URLPatternComponentResult;
2389-
inputs?: URLPatternInput[];
2390-
password?: URLPatternComponentResult;
2391-
pathname?: URLPatternComponentResult;
2392-
port?: URLPatternComponentResult;
2393-
protocol?: URLPatternComponentResult;
2394-
search?: URLPatternComponentResult;
2395-
username?: URLPatternComponentResult;
2387+
hash: URLPatternComponentResult;
2388+
hostname: URLPatternComponentResult;
2389+
inputs: URLPatternInput[];
2390+
password: URLPatternComponentResult;
2391+
pathname: URLPatternComponentResult;
2392+
port: URLPatternComponentResult;
2393+
protocol: URLPatternComponentResult;
2394+
search: URLPatternComponentResult;
2395+
username: URLPatternComponentResult;
23962396
}
23972397

23982398
interface UnderlyingByteSource {

baselines/serviceworker.generated.d.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -740,8 +740,8 @@ interface Transformer<I = any, O = any> {
740740
}
741741

742742
interface URLPatternComponentResult {
743-
groups?: Record<string, string | undefined>;
744-
input?: string;
743+
groups: Record<string, string | undefined>;
744+
input: string;
745745
}
746746

747747
interface URLPatternInit {
@@ -761,15 +761,15 @@ interface URLPatternOptions {
761761
}
762762

763763
interface URLPatternResult {
764-
hash?: URLPatternComponentResult;
765-
hostname?: URLPatternComponentResult;
766-
inputs?: URLPatternInput[];
767-
password?: URLPatternComponentResult;
768-
pathname?: URLPatternComponentResult;
769-
port?: URLPatternComponentResult;
770-
protocol?: URLPatternComponentResult;
771-
search?: URLPatternComponentResult;
772-
username?: URLPatternComponentResult;
764+
hash: URLPatternComponentResult;
765+
hostname: URLPatternComponentResult;
766+
inputs: URLPatternInput[];
767+
password: URLPatternComponentResult;
768+
pathname: URLPatternComponentResult;
769+
port: URLPatternComponentResult;
770+
protocol: URLPatternComponentResult;
771+
search: URLPatternComponentResult;
772+
username: URLPatternComponentResult;
773773
}
774774

775775
interface UnderlyingByteSource {

baselines/sharedworker.generated.d.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -670,8 +670,8 @@ interface Transformer<I = any, O = any> {
670670
}
671671

672672
interface URLPatternComponentResult {
673-
groups?: Record<string, string | undefined>;
674-
input?: string;
673+
groups: Record<string, string | undefined>;
674+
input: string;
675675
}
676676

677677
interface URLPatternInit {
@@ -691,15 +691,15 @@ interface URLPatternOptions {
691691
}
692692

693693
interface URLPatternResult {
694-
hash?: URLPatternComponentResult;
695-
hostname?: URLPatternComponentResult;
696-
inputs?: URLPatternInput[];
697-
password?: URLPatternComponentResult;
698-
pathname?: URLPatternComponentResult;
699-
port?: URLPatternComponentResult;
700-
protocol?: URLPatternComponentResult;
701-
search?: URLPatternComponentResult;
702-
username?: URLPatternComponentResult;
694+
hash: URLPatternComponentResult;
695+
hostname: URLPatternComponentResult;
696+
inputs: URLPatternInput[];
697+
password: URLPatternComponentResult;
698+
pathname: URLPatternComponentResult;
699+
port: URLPatternComponentResult;
700+
protocol: URLPatternComponentResult;
701+
search: URLPatternComponentResult;
702+
username: URLPatternComponentResult;
703703
}
704704

705705
interface UnderlyingByteSource {

baselines/ts5.5/dom.generated.d.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2363,8 +2363,8 @@ interface ULongRange {
23632363
}
23642364

23652365
interface URLPatternComponentResult {
2366-
groups?: Record<string, string | undefined>;
2367-
input?: string;
2366+
groups: Record<string, string | undefined>;
2367+
input: string;
23682368
}
23692369

23702370
interface URLPatternInit {
@@ -2384,15 +2384,15 @@ interface URLPatternOptions {
23842384
}
23852385

23862386
interface URLPatternResult {
2387-
hash?: URLPatternComponentResult;
2388-
hostname?: URLPatternComponentResult;
2389-
inputs?: URLPatternInput[];
2390-
password?: URLPatternComponentResult;
2391-
pathname?: URLPatternComponentResult;
2392-
port?: URLPatternComponentResult;
2393-
protocol?: URLPatternComponentResult;
2394-
search?: URLPatternComponentResult;
2395-
username?: URLPatternComponentResult;
2387+
hash: URLPatternComponentResult;
2388+
hostname: URLPatternComponentResult;
2389+
inputs: URLPatternInput[];
2390+
password: URLPatternComponentResult;
2391+
pathname: URLPatternComponentResult;
2392+
port: URLPatternComponentResult;
2393+
protocol: URLPatternComponentResult;
2394+
search: URLPatternComponentResult;
2395+
username: URLPatternComponentResult;
23962396
}
23972397

23982398
interface UnderlyingByteSource {

baselines/ts5.5/serviceworker.generated.d.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -740,8 +740,8 @@ interface Transformer<I = any, O = any> {
740740
}
741741

742742
interface URLPatternComponentResult {
743-
groups?: Record<string, string | undefined>;
744-
input?: string;
743+
groups: Record<string, string | undefined>;
744+
input: string;
745745
}
746746

747747
interface URLPatternInit {
@@ -761,15 +761,15 @@ interface URLPatternOptions {
761761
}
762762

763763
interface URLPatternResult {
764-
hash?: URLPatternComponentResult;
765-
hostname?: URLPatternComponentResult;
766-
inputs?: URLPatternInput[];
767-
password?: URLPatternComponentResult;
768-
pathname?: URLPatternComponentResult;
769-
port?: URLPatternComponentResult;
770-
protocol?: URLPatternComponentResult;
771-
search?: URLPatternComponentResult;
772-
username?: URLPatternComponentResult;
764+
hash: URLPatternComponentResult;
765+
hostname: URLPatternComponentResult;
766+
inputs: URLPatternInput[];
767+
password: URLPatternComponentResult;
768+
pathname: URLPatternComponentResult;
769+
port: URLPatternComponentResult;
770+
protocol: URLPatternComponentResult;
771+
search: URLPatternComponentResult;
772+
username: URLPatternComponentResult;
773773
}
774774

775775
interface UnderlyingByteSource {

baselines/ts5.5/sharedworker.generated.d.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -670,8 +670,8 @@ interface Transformer<I = any, O = any> {
670670
}
671671

672672
interface URLPatternComponentResult {
673-
groups?: Record<string, string | undefined>;
674-
input?: string;
673+
groups: Record<string, string | undefined>;
674+
input: string;
675675
}
676676

677677
interface URLPatternInit {
@@ -691,15 +691,15 @@ interface URLPatternOptions {
691691
}
692692

693693
interface URLPatternResult {
694-
hash?: URLPatternComponentResult;
695-
hostname?: URLPatternComponentResult;
696-
inputs?: URLPatternInput[];
697-
password?: URLPatternComponentResult;
698-
pathname?: URLPatternComponentResult;
699-
port?: URLPatternComponentResult;
700-
protocol?: URLPatternComponentResult;
701-
search?: URLPatternComponentResult;
702-
username?: URLPatternComponentResult;
694+
hash: URLPatternComponentResult;
695+
hostname: URLPatternComponentResult;
696+
inputs: URLPatternInput[];
697+
password: URLPatternComponentResult;
698+
pathname: URLPatternComponentResult;
699+
port: URLPatternComponentResult;
700+
protocol: URLPatternComponentResult;
701+
search: URLPatternComponentResult;
702+
username: URLPatternComponentResult;
703703
}
704704

705705
interface UnderlyingByteSource {

baselines/ts5.5/webworker.generated.d.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -884,8 +884,8 @@ interface Transformer<I = any, O = any> {
884884
}
885885

886886
interface URLPatternComponentResult {
887-
groups?: Record<string, string | undefined>;
888-
input?: string;
887+
groups: Record<string, string | undefined>;
888+
input: string;
889889
}
890890

891891
interface URLPatternInit {
@@ -905,15 +905,15 @@ interface URLPatternOptions {
905905
}
906906

907907
interface URLPatternResult {
908-
hash?: URLPatternComponentResult;
909-
hostname?: URLPatternComponentResult;
910-
inputs?: URLPatternInput[];
911-
password?: URLPatternComponentResult;
912-
pathname?: URLPatternComponentResult;
913-
port?: URLPatternComponentResult;
914-
protocol?: URLPatternComponentResult;
915-
search?: URLPatternComponentResult;
916-
username?: URLPatternComponentResult;
908+
hash: URLPatternComponentResult;
909+
hostname: URLPatternComponentResult;
910+
inputs: URLPatternInput[];
911+
password: URLPatternComponentResult;
912+
pathname: URLPatternComponentResult;
913+
port: URLPatternComponentResult;
914+
protocol: URLPatternComponentResult;
915+
search: URLPatternComponentResult;
916+
username: URLPatternComponentResult;
917917
}
918918

919919
interface UnderlyingByteSource {

baselines/ts5.6/dom.generated.d.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2363,8 +2363,8 @@ interface ULongRange {
23632363
}
23642364

23652365
interface URLPatternComponentResult {
2366-
groups?: Record<string, string | undefined>;
2367-
input?: string;
2366+
groups: Record<string, string | undefined>;
2367+
input: string;
23682368
}
23692369

23702370
interface URLPatternInit {
@@ -2384,15 +2384,15 @@ interface URLPatternOptions {
23842384
}
23852385

23862386
interface URLPatternResult {
2387-
hash?: URLPatternComponentResult;
2388-
hostname?: URLPatternComponentResult;
2389-
inputs?: URLPatternInput[];
2390-
password?: URLPatternComponentResult;
2391-
pathname?: URLPatternComponentResult;
2392-
port?: URLPatternComponentResult;
2393-
protocol?: URLPatternComponentResult;
2394-
search?: URLPatternComponentResult;
2395-
username?: URLPatternComponentResult;
2387+
hash: URLPatternComponentResult;
2388+
hostname: URLPatternComponentResult;
2389+
inputs: URLPatternInput[];
2390+
password: URLPatternComponentResult;
2391+
pathname: URLPatternComponentResult;
2392+
port: URLPatternComponentResult;
2393+
protocol: URLPatternComponentResult;
2394+
search: URLPatternComponentResult;
2395+
username: URLPatternComponentResult;
23962396
}
23972397

23982398
interface UnderlyingByteSource {

baselines/ts5.6/serviceworker.generated.d.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -740,8 +740,8 @@ interface Transformer<I = any, O = any> {
740740
}
741741

742742
interface URLPatternComponentResult {
743-
groups?: Record<string, string | undefined>;
744-
input?: string;
743+
groups: Record<string, string | undefined>;
744+
input: string;
745745
}
746746

747747
interface URLPatternInit {
@@ -761,15 +761,15 @@ interface URLPatternOptions {
761761
}
762762

763763
interface URLPatternResult {
764-
hash?: URLPatternComponentResult;
765-
hostname?: URLPatternComponentResult;
766-
inputs?: URLPatternInput[];
767-
password?: URLPatternComponentResult;
768-
pathname?: URLPatternComponentResult;
769-
port?: URLPatternComponentResult;
770-
protocol?: URLPatternComponentResult;
771-
search?: URLPatternComponentResult;
772-
username?: URLPatternComponentResult;
764+
hash: URLPatternComponentResult;
765+
hostname: URLPatternComponentResult;
766+
inputs: URLPatternInput[];
767+
password: URLPatternComponentResult;
768+
pathname: URLPatternComponentResult;
769+
port: URLPatternComponentResult;
770+
protocol: URLPatternComponentResult;
771+
search: URLPatternComponentResult;
772+
username: URLPatternComponentResult;
773773
}
774774

775775
interface UnderlyingByteSource {

baselines/ts5.6/sharedworker.generated.d.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -670,8 +670,8 @@ interface Transformer<I = any, O = any> {
670670
}
671671

672672
interface URLPatternComponentResult {
673-
groups?: Record<string, string | undefined>;
674-
input?: string;
673+
groups: Record<string, string | undefined>;
674+
input: string;
675675
}
676676

677677
interface URLPatternInit {
@@ -691,15 +691,15 @@ interface URLPatternOptions {
691691
}
692692

693693
interface URLPatternResult {
694-
hash?: URLPatternComponentResult;
695-
hostname?: URLPatternComponentResult;
696-
inputs?: URLPatternInput[];
697-
password?: URLPatternComponentResult;
698-
pathname?: URLPatternComponentResult;
699-
port?: URLPatternComponentResult;
700-
protocol?: URLPatternComponentResult;
701-
search?: URLPatternComponentResult;
702-
username?: URLPatternComponentResult;
694+
hash: URLPatternComponentResult;
695+
hostname: URLPatternComponentResult;
696+
inputs: URLPatternInput[];
697+
password: URLPatternComponentResult;
698+
pathname: URLPatternComponentResult;
699+
port: URLPatternComponentResult;
700+
protocol: URLPatternComponentResult;
701+
search: URLPatternComponentResult;
702+
username: URLPatternComponentResult;
703703
}
704704

705705
interface UnderlyingByteSource {

0 commit comments

Comments
 (0)