Skip to content

Commit 08bf0e7

Browse files
committed
Update
1 parent f4ce5c5 commit 08bf0e7

File tree

4 files changed

+58
-55
lines changed

4 files changed

+58
-55
lines changed

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

Lines changed: 25 additions & 22 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 {
@@ -4821,7 +4821,7 @@ interface CSSFontFaceRule extends CSSRule {
48214821
*
48224822
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFaceRule/style)
48234823
*/
4824-
get style(): CSSStyleProperties;
4824+
get style(): CSSStyleDeclaration;
48254825
set style(cssText: string);
48264826
}
48274827

@@ -4991,7 +4991,7 @@ interface CSSKeyframeRule extends CSSRule {
49914991
*
49924992
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframeRule/style)
49934993
*/
4994-
get style(): CSSStyleProperties;
4994+
get style(): CSSStyleDeclaration;
49954995
set style(cssText: string);
49964996
}
49974997

@@ -5326,7 +5326,7 @@ interface CSSNestedDeclarations extends CSSRule {
53265326
*
53275327
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNestedDeclarations/style)
53285328
*/
5329-
get style(): CSSStyleProperties;
5329+
get style(): CSSStyleDeclaration;
53305330
set style(cssText: string);
53315331
}
53325332

@@ -5440,7 +5440,7 @@ declare var CSSNumericValue: {
54405440
*
54415441
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPageDescriptors)
54425442
*/
5443-
interface CSSPageDescriptors extends CSSStyleDeclaration {
5443+
interface CSSPageDescriptors extends CSSStyleDeclarationBase {
54445444
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPageDescriptors#margin) */
54455445
margin: string;
54465446
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPageDescriptors#margin-bottom) */
@@ -5518,7 +5518,7 @@ declare var CSSPerspective: {
55185518
*
55195519
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPositionTryDescriptors)
55205520
*/
5521-
interface CSSPositionTryDescriptors extends CSSStyleDeclaration {
5521+
interface CSSPositionTryDescriptors extends CSSStyleDeclarationBase {
55225522
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPositionTryDescriptors#instance_properties) */
55235523
"align-self": string;
55245524
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPositionTryDescriptors#instance_properties) */
@@ -5992,7 +5992,7 @@ declare var CSSStartingStyleRule: {
59925992
*
59935993
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration)
59945994
*/
5995-
interface CSSStyleDeclaration {
5995+
interface CSSStyleDeclarationBase {
59965996
/**
59975997
* The **`cssText`** property of the CSSStyleDeclaration interface returns or sets the text of the element's **inline** style declaration only.
59985998
*
@@ -6044,12 +6044,15 @@ interface CSSStyleDeclaration {
60446044
[index: number]: string;
60456045
}
60466046

6047+
interface CSSStyleDeclaration extends CSSStyleProperties {
6048+
}
6049+
60476050
declare var CSSStyleDeclaration: {
60486051
prototype: CSSStyleDeclaration;
60496052
new(): CSSStyleDeclaration;
60506053
};
60516054

6052-
interface CSSStyleProperties extends CSSStyleDeclaration {
6055+
interface CSSStyleProperties extends CSSStyleDeclarationBase {
60536056
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/accent-color) */
60546057
accentColor: string;
60556058
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/align-content) */
@@ -7414,7 +7417,7 @@ interface CSSStyleRule extends CSSGroupingRule {
74147417
*
74157418
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule/style)
74167419
*/
7417-
get style(): CSSStyleProperties;
7420+
get style(): CSSStyleDeclaration;
74187421
set style(cssText: string);
74197422
/**
74207423
* The **`styleMap`** read-only property of the CSSStyleRule interface returns a StylePropertyMap object which provides access to the rule's property-value pairs.
@@ -11458,7 +11461,7 @@ interface ElementCSSInlineStyle {
1145811461
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/attributeStyleMap) */
1145911462
readonly attributeStyleMap: StylePropertyMap;
1146011463
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/style) */
11461-
get style(): CSSStyleProperties;
11464+
get style(): CSSStyleDeclaration;
1146211465
set style(cssText: string);
1146311466
}
1146411467

@@ -37355,7 +37358,7 @@ interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandler
3735537358
*
3735637359
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/getComputedStyle)
3735737360
*/
37358-
getComputedStyle(elt: Element, pseudoElt?: string | null): CSSStyleProperties;
37361+
getComputedStyle(elt: Element, pseudoElt?: string | null): CSSStyleDeclaration;
3735937362
/**
3736037363
* The **`getSelection()`** method of the Window interface returns the Selection object associated with the window's document, representing the range of text selected by the user or the current position of the caret.
3736137364
*
@@ -39457,7 +39460,7 @@ declare function focus(): void;
3945739460
*
3945839461
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/getComputedStyle)
3945939462
*/
39460-
declare function getComputedStyle(elt: Element, pseudoElt?: string | null): CSSStyleProperties;
39463+
declare function getComputedStyle(elt: Element, pseudoElt?: string | null): CSSStyleDeclaration;
3946139464
/**
3946239465
* The **`getSelection()`** method of the Window interface returns the Selection object associated with the window's document, representing the range of text selected by the user or the current position of the caret.
3946339466
*

baselines/ts5.9/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.9/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.9/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 {

0 commit comments

Comments
 (0)