Skip to content

Commit b879062

Browse files
authored
Merge pull request #404 from a-tarasyuk/feature/change-ready-state-type
Change readyState from string to DocumentReadyState
2 parents fd013bb + 4fe6465 commit b879062

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

baselines/dom.generated.d.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -3972,7 +3972,7 @@ interface Document extends Node, GlobalEventHandlers, ParentNode, DocumentEvent
39723972
/**
39733973
* Retrieves a value that indicates the current state of the object.
39743974
*/
3975-
readonly readyState: string;
3975+
readonly readyState: DocumentReadyState;
39763976
/**
39773977
* Gets the URL of the location that referred the user to the current page.
39783978
*/
@@ -15983,6 +15983,7 @@ type ChannelCountMode = "max" | "clamped-max" | "explicit";
1598315983
type ChannelInterpretation = "speakers" | "discrete";
1598415984
type DisplayCaptureSurfaceType = "monitor" | "window" | "application" | "browser";
1598515985
type DistanceModelType = "linear" | "inverse" | "exponential";
15986+
type DocumentReadyState = "loading" | "interactive" | "complete";
1598615987
type EndOfStreamError = "network" | "decode";
1598715988
type ExpandGranularity = "character" | "word" | "sentence" | "textedit";
1598815989
type GamepadHand = "" | "left" | "right";

inputfiles/overridingTypes.json

+15-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,17 @@
133133
"interface": {}
134134
},
135135
"enums": {
136-
"enum": {}
136+
"enum": {
137+
"DocumentReadyState": {
138+
"specs": "dom4",
139+
"value": [
140+
"loading",
141+
"interactive",
142+
"complete"
143+
],
144+
"name": "DocumentReadyState"
145+
}
146+
}
137147
},
138148
"interfaces": {
139149
"interface": {
@@ -315,6 +325,10 @@
315325
},
316326
"properties": {
317327
"property": {
328+
"readyState": {
329+
"name": "readyState",
330+
"override-type": "DocumentReadyState"
331+
},
318332
"documentElement": {
319333
"name": "documentElement",
320334
"override-type": "HTMLElement"

0 commit comments

Comments
 (0)