Skip to content

Commit 9288b15

Browse files
saschanazsandersn
authored andcommitted
Sort enums (#765)
1 parent 43b7dd3 commit 9288b15

File tree

3 files changed

+131
-130
lines changed

3 files changed

+131
-130
lines changed

baselines/dom.generated.d.ts

Lines changed: 102 additions & 102 deletions
Original file line numberDiff line numberDiff line change
@@ -19178,9 +19178,9 @@ declare namespace WebAssembly {
1917819178
module: Module;
1917919179
}
1918019180

19181-
type ImportExportKind = "function" | "table" | "memory" | "global";
19181+
type ImportExportKind = "function" | "global" | "memory" | "table";
1918219182
type TableKind = "anyfunc";
19183-
type ValueType = "i32" | "i64" | "f32" | "f64";
19183+
type ValueType = "f32" | "f64" | "i32" | "i64";
1918419184
type ExportValue = Function | Global | Memory | Table;
1918519185
type Exports = Record<string, ExportValue>;
1918619186
type ImportValue = ExportValue | number;
@@ -20023,138 +20023,138 @@ type RTCTransport = RTCDtlsTransport | RTCSrtpSdesTransport;
2002320023
/** @deprecated */
2002420024
type MouseWheelEvent = WheelEvent;
2002520025
type WindowProxy = Window;
20026-
type AlignSetting = "start" | "center" | "end" | "left" | "right";
20027-
type AnimationPlayState = "idle" | "running" | "paused" | "finished";
20026+
type AlignSetting = "center" | "end" | "left" | "right" | "start";
20027+
type AnimationPlayState = "finished" | "idle" | "paused" | "running";
2002820028
type AppendMode = "segments" | "sequence";
20029-
type AttestationConveyancePreference = "none" | "indirect" | "direct";
20029+
type AttestationConveyancePreference = "direct" | "indirect" | "none";
2003020030
type AudioContextLatencyCategory = "balanced" | "interactive" | "playback";
20031-
type AudioContextState = "suspended" | "running" | "closed";
20032-
type AuthenticatorAttachment = "platform" | "cross-platform";
20033-
type AuthenticatorTransport = "usb" | "nfc" | "ble" | "internal";
20031+
type AudioContextState = "closed" | "running" | "suspended";
20032+
type AuthenticatorAttachment = "cross-platform" | "platform";
20033+
type AuthenticatorTransport = "ble" | "internal" | "nfc" | "usb";
2003420034
type AutoKeyword = "auto";
2003520035
type AutomationRate = "a-rate" | "k-rate";
20036-
type BinaryType = "blob" | "arraybuffer";
20037-
type BiquadFilterType = "lowpass" | "highpass" | "bandpass" | "lowshelf" | "highshelf" | "peaking" | "notch" | "allpass";
20036+
type BinaryType = "arraybuffer" | "blob";
20037+
type BiquadFilterType = "allpass" | "bandpass" | "highpass" | "highshelf" | "lowpass" | "lowshelf" | "notch" | "peaking";
2003820038
type CanPlayTypeResult = "" | "maybe" | "probably";
20039-
type CanvasDirection = "ltr" | "rtl" | "inherit";
20040-
type CanvasFillRule = "nonzero" | "evenodd";
20039+
type CanvasDirection = "inherit" | "ltr" | "rtl";
20040+
type CanvasFillRule = "evenodd" | "nonzero";
2004120041
type CanvasLineCap = "butt" | "round" | "square";
20042-
type CanvasLineJoin = "round" | "bevel" | "miter";
20043-
type CanvasTextAlign = "start" | "end" | "left" | "right" | "center";
20044-
type CanvasTextBaseline = "top" | "hanging" | "middle" | "alphabetic" | "ideographic" | "bottom";
20045-
type ChannelCountMode = "max" | "clamped-max" | "explicit";
20046-
type ChannelInterpretation = "speakers" | "discrete";
20047-
type ClientTypes = "window" | "worker" | "sharedworker" | "all";
20048-
type CompositeOperation = "replace" | "add" | "accumulate";
20049-
type CompositeOperationOrAuto = "replace" | "add" | "accumulate" | "auto";
20050-
type CredentialMediationRequirement = "silent" | "optional" | "required";
20051-
type DirectionSetting = "" | "rl" | "lr";
20052-
type DisplayCaptureSurfaceType = "monitor" | "window" | "application" | "browser";
20053-
type DistanceModelType = "linear" | "inverse" | "exponential";
20054-
type DocumentReadyState = "loading" | "interactive" | "complete";
20055-
type EndOfStreamError = "network" | "decode";
20056-
type EndingType = "transparent" | "native";
20057-
type FillMode = "none" | "forwards" | "backwards" | "both" | "auto";
20058-
type FullscreenNavigationUI = "auto" | "show" | "hide";
20042+
type CanvasLineJoin = "bevel" | "miter" | "round";
20043+
type CanvasTextAlign = "center" | "end" | "left" | "right" | "start";
20044+
type CanvasTextBaseline = "alphabetic" | "bottom" | "hanging" | "ideographic" | "middle" | "top";
20045+
type ChannelCountMode = "clamped-max" | "explicit" | "max";
20046+
type ChannelInterpretation = "discrete" | "speakers";
20047+
type ClientTypes = "all" | "sharedworker" | "window" | "worker";
20048+
type CompositeOperation = "accumulate" | "add" | "replace";
20049+
type CompositeOperationOrAuto = "accumulate" | "add" | "auto" | "replace";
20050+
type CredentialMediationRequirement = "optional" | "required" | "silent";
20051+
type DirectionSetting = "" | "lr" | "rl";
20052+
type DisplayCaptureSurfaceType = "application" | "browser" | "monitor" | "window";
20053+
type DistanceModelType = "exponential" | "inverse" | "linear";
20054+
type DocumentReadyState = "complete" | "interactive" | "loading";
20055+
type EndOfStreamError = "decode" | "network";
20056+
type EndingType = "native" | "transparent";
20057+
type FillMode = "auto" | "backwards" | "both" | "forwards" | "none";
20058+
type FullscreenNavigationUI = "auto" | "hide" | "show";
2005920059
type GamepadHand = "" | "left" | "right";
2006020060
type GamepadHapticActuatorType = "vibration";
2006120061
type GamepadMappingType = "" | "standard";
2006220062
type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique";
20063-
type IDBRequestReadyState = "pending" | "done";
20063+
type IDBRequestReadyState = "done" | "pending";
2006420064
type IDBTransactionMode = "readonly" | "readwrite" | "versionchange";
20065-
type ImageSmoothingQuality = "low" | "medium" | "high";
20066-
type IterationCompositeOperation = "replace" | "accumulate";
20067-
type KeyFormat = "raw" | "spki" | "pkcs8" | "jwk";
20068-
type KeyType = "public" | "private" | "secret";
20069-
type KeyUsage = "encrypt" | "decrypt" | "sign" | "verify" | "deriveKey" | "deriveBits" | "wrapKey" | "unwrapKey";
20070-
type LineAlignSetting = "start" | "center" | "end";
20071-
type ListeningState = "inactive" | "active" | "disambiguation";
20065+
type ImageSmoothingQuality = "high" | "low" | "medium";
20066+
type IterationCompositeOperation = "accumulate" | "replace";
20067+
type KeyFormat = "jwk" | "pkcs8" | "raw" | "spki";
20068+
type KeyType = "private" | "public" | "secret";
20069+
type KeyUsage = "decrypt" | "deriveBits" | "deriveKey" | "encrypt" | "sign" | "unwrapKey" | "verify" | "wrapKey";
20070+
type LineAlignSetting = "center" | "end" | "start";
20071+
type ListeningState = "active" | "disambiguation" | "inactive";
2007220072
type MSCredentialType = "FIDO_2_0";
20073-
type MSTransportType = "Embedded" | "USB" | "NFC" | "BT";
20074-
type MSWebViewPermissionState = "unknown" | "defer" | "allow" | "deny";
20075-
type MSWebViewPermissionType = "geolocation" | "unlimitedIndexedDBQuota" | "media" | "pointerlock" | "webnotifications";
20073+
type MSTransportType = "BT" | "Embedded" | "NFC" | "USB";
20074+
type MSWebViewPermissionState = "allow" | "defer" | "deny" | "unknown";
20075+
type MSWebViewPermissionType = "geolocation" | "media" | "pointerlock" | "unlimitedIndexedDBQuota" | "webnotifications";
2007620076
type MediaDeviceKind = "audioinput" | "audiooutput" | "videoinput";
20077-
type MediaKeyMessageType = "license-request" | "license-renewal" | "license-release" | "individualization-request";
20078-
type MediaKeySessionType = "temporary" | "persistent-license";
20079-
type MediaKeyStatus = "usable" | "expired" | "released" | "output-restricted" | "output-downscaled" | "status-pending" | "internal-error";
20080-
type MediaKeysRequirement = "required" | "optional" | "not-allowed";
20081-
type MediaStreamTrackState = "live" | "ended";
20082-
type NavigationReason = "up" | "down" | "left" | "right";
20083-
type NavigationType = "navigate" | "reload" | "back_forward" | "prerender";
20077+
type MediaKeyMessageType = "individualization-request" | "license-release" | "license-renewal" | "license-request";
20078+
type MediaKeySessionType = "persistent-license" | "temporary";
20079+
type MediaKeyStatus = "expired" | "internal-error" | "output-downscaled" | "output-restricted" | "released" | "status-pending" | "usable";
20080+
type MediaKeysRequirement = "not-allowed" | "optional" | "required";
20081+
type MediaStreamTrackState = "ended" | "live";
20082+
type NavigationReason = "down" | "left" | "right" | "up";
20083+
type NavigationType = "back_forward" | "navigate" | "prerender" | "reload";
2008420084
type NotificationDirection = "auto" | "ltr" | "rtl";
2008520085
type NotificationPermission = "default" | "denied" | "granted";
2008620086
type OffscreenRenderingContextId = "2d" | "bitmaprenderer" | "webgl" | "webgl2";
20087-
type OrientationLockType = "any" | "natural" | "landscape" | "portrait" | "portrait-primary" | "portrait-secondary" | "landscape-primary" | "landscape-secondary";
20088-
type OrientationType = "portrait-primary" | "portrait-secondary" | "landscape-primary" | "landscape-secondary";
20089-
type OscillatorType = "sine" | "square" | "sawtooth" | "triangle" | "custom";
20090-
type OverSampleType = "none" | "2x" | "4x";
20091-
type PanningModelType = "equalpower" | "HRTF";
20092-
type PaymentComplete = "success" | "fail" | "unknown";
20093-
type PaymentShippingType = "shipping" | "delivery" | "pickup";
20094-
type PermissionName = "geolocation" | "notifications" | "push" | "midi" | "camera" | "microphone" | "speaker" | "device-info" | "background-sync" | "bluetooth" | "persistent-storage" | "ambient-light-sensor" | "accelerometer" | "gyroscope" | "magnetometer" | "clipboard";
20095-
type PermissionState = "granted" | "denied" | "prompt";
20096-
type PlaybackDirection = "normal" | "reverse" | "alternate" | "alternate-reverse";
20097-
type PositionAlignSetting = "line-left" | "center" | "line-right" | "auto";
20087+
type OrientationLockType = "any" | "landscape" | "landscape-primary" | "landscape-secondary" | "natural" | "portrait" | "portrait-primary" | "portrait-secondary";
20088+
type OrientationType = "landscape-primary" | "landscape-secondary" | "portrait-primary" | "portrait-secondary";
20089+
type OscillatorType = "custom" | "sawtooth" | "sine" | "square" | "triangle";
20090+
type OverSampleType = "2x" | "4x" | "none";
20091+
type PanningModelType = "HRTF" | "equalpower";
20092+
type PaymentComplete = "fail" | "success" | "unknown";
20093+
type PaymentShippingType = "delivery" | "pickup" | "shipping";
20094+
type PermissionName = "accelerometer" | "ambient-light-sensor" | "background-sync" | "bluetooth" | "camera" | "clipboard" | "device-info" | "geolocation" | "gyroscope" | "magnetometer" | "microphone" | "midi" | "notifications" | "persistent-storage" | "push" | "speaker";
20095+
type PermissionState = "denied" | "granted" | "prompt";
20096+
type PlaybackDirection = "alternate" | "alternate-reverse" | "normal" | "reverse";
20097+
type PositionAlignSetting = "auto" | "center" | "line-left" | "line-right";
2009820098
type PublicKeyCredentialType = "public-key";
20099-
type PushEncryptionKeyName = "p256dh" | "auth";
20099+
type PushEncryptionKeyName = "auth" | "p256dh";
2010020100
type PushPermissionState = "denied" | "granted" | "prompt";
20101-
type RTCBundlePolicy = "balanced" | "max-compat" | "max-bundle";
20102-
type RTCDataChannelState = "connecting" | "open" | "closing" | "closed";
20103-
type RTCDegradationPreference = "maintain-framerate" | "maintain-resolution" | "balanced";
20101+
type RTCBundlePolicy = "balanced" | "max-bundle" | "max-compat";
20102+
type RTCDataChannelState = "closed" | "closing" | "connecting" | "open";
20103+
type RTCDegradationPreference = "balanced" | "maintain-framerate" | "maintain-resolution";
2010420104
type RTCDtlsRole = "auto" | "client" | "server";
20105-
type RTCDtlsTransportState = "new" | "connecting" | "connected" | "closed" | "failed";
20105+
type RTCDtlsTransportState = "closed" | "connected" | "connecting" | "failed" | "new";
2010620106
type RTCDtxStatus = "disabled" | "enabled";
20107-
type RTCErrorDetailType = "data-channel-failure" | "dtls-failure" | "fingerprint-failure" | "idp-bad-script-failure" | "idp-execution-failure" | "idp-load-failure" | "idp-need-login" | "idp-timeout" | "idp-tls-failure" | "idp-token-expired" | "idp-token-invalid" | "sctp-failure" | "sdp-syntax-error" | "hardware-encoder-not-available" | "hardware-encoder-error";
20108-
type RTCIceCandidateType = "host" | "srflx" | "prflx" | "relay";
20109-
type RTCIceComponent = "rtp" | "rtcp";
20110-
type RTCIceConnectionState = "new" | "checking" | "connected" | "completed" | "disconnected" | "failed" | "closed";
20111-
type RTCIceCredentialType = "password" | "oauth";
20107+
type RTCErrorDetailType = "data-channel-failure" | "dtls-failure" | "fingerprint-failure" | "hardware-encoder-error" | "hardware-encoder-not-available" | "idp-bad-script-failure" | "idp-execution-failure" | "idp-load-failure" | "idp-need-login" | "idp-timeout" | "idp-tls-failure" | "idp-token-expired" | "idp-token-invalid" | "sctp-failure" | "sdp-syntax-error";
20108+
type RTCIceCandidateType = "host" | "prflx" | "relay" | "srflx";
20109+
type RTCIceComponent = "rtcp" | "rtp";
20110+
type RTCIceConnectionState = "checking" | "closed" | "completed" | "connected" | "disconnected" | "failed" | "new";
20111+
type RTCIceCredentialType = "oauth" | "password";
2011220112
type RTCIceGatherPolicy = "all" | "nohost" | "relay";
20113-
type RTCIceGathererState = "new" | "gathering" | "complete";
20114-
type RTCIceGatheringState = "new" | "gathering" | "complete";
20115-
type RTCIceProtocol = "udp" | "tcp";
20116-
type RTCIceRole = "controlling" | "controlled";
20113+
type RTCIceGathererState = "complete" | "gathering" | "new";
20114+
type RTCIceGatheringState = "complete" | "gathering" | "new";
20115+
type RTCIceProtocol = "tcp" | "udp";
20116+
type RTCIceRole = "controlled" | "controlling";
2011720117
type RTCIceTcpCandidateType = "active" | "passive" | "so";
20118-
type RTCIceTransportPolicy = "relay" | "all";
20119-
type RTCIceTransportState = "new" | "checking" | "connected" | "completed" | "disconnected" | "failed" | "closed";
20120-
type RTCPeerConnectionState = "new" | "connecting" | "connected" | "disconnected" | "failed" | "closed";
20121-
type RTCPriorityType = "very-low" | "low" | "medium" | "high";
20118+
type RTCIceTransportPolicy = "all" | "relay";
20119+
type RTCIceTransportState = "checking" | "closed" | "completed" | "connected" | "disconnected" | "failed" | "new";
20120+
type RTCPeerConnectionState = "closed" | "connected" | "connecting" | "disconnected" | "failed" | "new";
20121+
type RTCPriorityType = "high" | "low" | "medium" | "very-low";
2012220122
type RTCRtcpMuxPolicy = "negotiate" | "require";
20123-
type RTCRtpTransceiverDirection = "sendrecv" | "sendonly" | "recvonly" | "inactive";
20124-
type RTCSctpTransportState = "connecting" | "connected" | "closed";
20125-
type RTCSdpType = "offer" | "pranswer" | "answer" | "rollback";
20126-
type RTCSignalingState = "stable" | "have-local-offer" | "have-remote-offer" | "have-local-pranswer" | "have-remote-pranswer" | "closed";
20127-
type RTCStatsIceCandidatePairState = "frozen" | "waiting" | "inprogress" | "failed" | "succeeded" | "cancelled";
20128-
type RTCStatsIceCandidateType = "host" | "serverreflexive" | "peerreflexive" | "relayed";
20129-
type RTCStatsType = "inboundrtp" | "outboundrtp" | "session" | "datachannel" | "track" | "transport" | "candidatepair" | "localcandidate" | "remotecandidate";
20130-
type ReadyState = "closed" | "open" | "ended";
20131-
type ReferrerPolicy = "" | "no-referrer" | "no-referrer-when-downgrade" | "same-origin" | "origin" | "strict-origin" | "origin-when-cross-origin" | "strict-origin-when-cross-origin" | "unsafe-url";
20132-
type RequestCache = "default" | "no-store" | "reload" | "no-cache" | "force-cache" | "only-if-cached";
20133-
type RequestCredentials = "omit" | "same-origin" | "include";
20123+
type RTCRtpTransceiverDirection = "inactive" | "recvonly" | "sendonly" | "sendrecv";
20124+
type RTCSctpTransportState = "closed" | "connected" | "connecting";
20125+
type RTCSdpType = "answer" | "offer" | "pranswer" | "rollback";
20126+
type RTCSignalingState = "closed" | "have-local-offer" | "have-local-pranswer" | "have-remote-offer" | "have-remote-pranswer" | "stable";
20127+
type RTCStatsIceCandidatePairState = "cancelled" | "failed" | "frozen" | "inprogress" | "succeeded" | "waiting";
20128+
type RTCStatsIceCandidateType = "host" | "peerreflexive" | "relayed" | "serverreflexive";
20129+
type RTCStatsType = "candidatepair" | "datachannel" | "inboundrtp" | "localcandidate" | "outboundrtp" | "remotecandidate" | "session" | "track" | "transport";
20130+
type ReadyState = "closed" | "ended" | "open";
20131+
type ReferrerPolicy = "" | "no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url";
20132+
type RequestCache = "default" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload";
20133+
type RequestCredentials = "include" | "omit" | "same-origin";
2013420134
type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "image" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "track" | "video" | "worker" | "xslt";
20135-
type RequestMode = "navigate" | "same-origin" | "no-cors" | "cors";
20136-
type RequestRedirect = "follow" | "error" | "manual";
20135+
type RequestMode = "cors" | "navigate" | "no-cors" | "same-origin";
20136+
type RequestRedirect = "error" | "follow" | "manual";
2013720137
type ResponseType = "basic" | "cors" | "default" | "error" | "opaque" | "opaqueredirect";
2013820138
type ScopedCredentialType = "ScopedCred";
2013920139
type ScrollBehavior = "auto" | "smooth";
20140-
type ScrollLogicalPosition = "start" | "center" | "end" | "nearest";
20140+
type ScrollLogicalPosition = "center" | "end" | "nearest" | "start";
2014120141
type ScrollRestoration = "auto" | "manual";
2014220142
type ScrollSetting = "" | "up";
20143-
type SelectionMode = "select" | "start" | "end" | "preserve";
20144-
type ServiceWorkerState = "parsed" | "installing" | "installed" | "activating" | "activated" | "redundant";
20145-
type ServiceWorkerUpdateViaCache = "imports" | "all" | "none";
20146-
type ShadowRootMode = "open" | "closed";
20147-
type SpeechRecognitionErrorCode = "no-speech" | "aborted" | "audio-capture" | "network" | "not-allowed" | "service-not-allowed" | "bad-grammar" | "language-not-supported";
20148-
type SpeechSynthesisErrorCode = "canceled" | "interrupted" | "audio-busy" | "audio-hardware" | "network" | "synthesis-unavailable" | "synthesis-failed" | "language-unavailable" | "voice-unavailable" | "text-too-long" | "invalid-argument";
20149-
type SupportedType = "text/html" | "text/xml" | "application/xml" | "application/xhtml+xml" | "image/svg+xml";
20150-
type TextTrackKind = "subtitles" | "captions" | "descriptions" | "chapters" | "metadata";
20143+
type SelectionMode = "end" | "preserve" | "select" | "start";
20144+
type ServiceWorkerState = "activated" | "activating" | "installed" | "installing" | "parsed" | "redundant";
20145+
type ServiceWorkerUpdateViaCache = "all" | "imports" | "none";
20146+
type ShadowRootMode = "closed" | "open";
20147+
type SpeechRecognitionErrorCode = "aborted" | "audio-capture" | "bad-grammar" | "language-not-supported" | "network" | "no-speech" | "not-allowed" | "service-not-allowed";
20148+
type SpeechSynthesisErrorCode = "audio-busy" | "audio-hardware" | "canceled" | "interrupted" | "invalid-argument" | "language-unavailable" | "network" | "synthesis-failed" | "synthesis-unavailable" | "text-too-long" | "voice-unavailable";
20149+
type SupportedType = "application/xhtml+xml" | "application/xml" | "image/svg+xml" | "text/html" | "text/xml";
20150+
type TextTrackKind = "captions" | "chapters" | "descriptions" | "metadata" | "subtitles";
2015120151
type TextTrackMode = "disabled" | "hidden" | "showing";
2015220152
type TouchType = "direct" | "stylus";
20153-
type Transport = "usb" | "nfc" | "ble";
20154-
type UserVerificationRequirement = "required" | "preferred" | "discouraged";
20153+
type Transport = "ble" | "nfc" | "usb";
20154+
type UserVerificationRequirement = "discouraged" | "preferred" | "required";
2015520155
type VRDisplayEventReason = "mounted" | "navigation" | "requested" | "unmounted";
20156-
type VideoFacingModeEnum = "user" | "environment" | "left" | "right";
20156+
type VideoFacingModeEnum = "environment" | "left" | "right" | "user";
2015720157
type VisibilityState = "hidden" | "visible";
20158-
type WebGLPowerPreference = "default" | "low-power" | "high-performance";
20158+
type WebGLPowerPreference = "default" | "high-performance" | "low-power";
2015920159
type WorkerType = "classic" | "module";
2016020160
type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text";

0 commit comments

Comments
 (0)