Skip to content

DOM update 2019-11-19 #35207

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Nov 19, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
91 changes: 58 additions & 33 deletions src/lib/dom.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1496,6 +1496,16 @@ interface RTCTransportStats extends RTCStats {
selectedCandidatePairId?: string;
}

interface ReadableStreamReadDoneResult<T> {
done: true;
value?: T;
}

interface ReadableStreamReadValueResult<T> {
done: false;
value: T;
}

interface RegistrationOptions {
scope?: string;
type?: WorkerType;
Expand Down Expand Up @@ -2815,7 +2825,7 @@ interface CSSStyleDeclaration {
clip: string;
clipPath: string;
clipRule: string;
color: string | null;
color: string;
colorInterpolation: string;
colorInterpolationFilters: string;
columnCount: string;
Expand Down Expand Up @@ -2992,7 +3002,7 @@ interface CSSStyleDeclaration {
msWrapThrough: string;
objectFit: string;
objectPosition: string;
opacity: string | null;
opacity: string;
order: string;
orphans: string;
outline: string;
Expand Down Expand Up @@ -3032,14 +3042,14 @@ interface CSSStyleDeclaration {
right: string;
rotate: string;
rowGap: string;
rubyAlign: string | null;
rubyAlign: string;
rubyOverhang: string | null;
rubyPosition: string | null;
rubyPosition: string;
scale: string;
scrollBehavior: string;
shapeRendering: string;
stopColor: string | null;
stopOpacity: string | null;
stopColor: string;
stopOpacity: string;
stroke: string;
strokeDasharray: string;
strokeDashoffset: string;
Expand All @@ -3052,7 +3062,7 @@ interface CSSStyleDeclaration {
tableLayout: string;
textAlign: string;
textAlignLast: string;
textAnchor: string | null;
textAnchor: string;
textCombineUpright: string;
textDecoration: string;
textDecorationColor: string;
Expand Down Expand Up @@ -3344,7 +3354,7 @@ interface CacheStorage {
delete(cacheName: string): Promise<boolean>;
has(cacheName: string): Promise<boolean>;
keys(): Promise<string[]>;
match(request: RequestInfo, options?: CacheQueryOptions): Promise<Response | undefined>;
match(request: RequestInfo, options?: MultiCacheQueryOptions): Promise<Response | undefined>;
open(cacheName: string): Promise<Cache>;
}

Expand Down Expand Up @@ -4016,6 +4026,7 @@ interface DOMMatrixReadOnly {
toJSON(): any;
transformPoint(point?: DOMPointInit): DOMPoint;
translate(tx?: number, ty?: number, tz?: number): DOMMatrix;
toString(): string;
}

declare var DOMMatrixReadOnly: {
Expand All @@ -4024,6 +4035,7 @@ declare var DOMMatrixReadOnly: {
fromFloat32Array(array32: Float32Array): DOMMatrixReadOnly;
fromFloat64Array(array64: Float64Array): DOMMatrixReadOnly;
fromMatrix(other?: DOMMatrixInit): DOMMatrixReadOnly;
toString(): string;
};

/** Provides the ability to parse XML or HTML source code from a string into a DOM Document. */
Expand Down Expand Up @@ -4181,6 +4193,7 @@ interface DOMTokenList {
* Can be set, to change the associated attribute.
*/
value: string;
toString(): string;
/**
* Adds all arguments passed, except those already present.
*
Expand Down Expand Up @@ -4416,6 +4429,7 @@ interface DeviceMotionEvent extends Event {
declare var DeviceMotionEvent: {
prototype: DeviceMotionEvent;
new(type: string, eventInitDict?: DeviceMotionEventInit): DeviceMotionEvent;
requestPermission(): Promise<PermissionState>;
};

interface DeviceMotionEventAcceleration {
Expand All @@ -4441,6 +4455,7 @@ interface DeviceOrientationEvent extends Event {
declare var DeviceOrientationEvent: {
prototype: DeviceOrientationEvent;
new(type: string, eventInitDict?: DeviceOrientationEventInit): DeviceOrientationEvent;
requestPermission(): Promise<PermissionState>;
};

/** Provides information about the rate at which the device is rotating around all three axes. */
Expand Down Expand Up @@ -6096,10 +6111,10 @@ interface GlobalEventHandlers {
*/
ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
ontoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
ontouchcancel: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null;
ontouchend: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null;
ontouchmove: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null;
ontouchstart: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null;
ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null;
ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null;
ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null;
ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null;
ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
ontransitionrun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
Expand Down Expand Up @@ -7059,6 +7074,7 @@ interface HTMLHyperlinkElementUtils {
host: string;
hostname: string;
href: string;
toString(): string;
readonly origin: string;
password: string;
pathname: string;
Expand Down Expand Up @@ -7344,7 +7360,7 @@ interface HTMLInputElement extends HTMLElement {
* When present, marks an element that can't be submitted without a value.
*/
required: boolean;
selectionDirection: string | null;
selectionDirection: "forward" | "backward" | "none" | null;
/**
* Gets or sets the end position or offset of a text selection.
*/
Expand Down Expand Up @@ -8935,7 +8951,7 @@ interface HTMLTextAreaElement extends HTMLElement {
* Sets or retrieves the number of horizontal rows contained in the object.
*/
rows: number;
selectionDirection: string;
selectionDirection: "forward" | "backward" | "none";
/**
* Gets or sets the end position or offset of a text selection.
*/
Expand Down Expand Up @@ -9912,6 +9928,7 @@ interface Location {
* Can be set, to navigate to the given URL.
*/
href: string;
toString(): string;
/**
* Returns the Location object's URL's origin.
*/
Expand Down Expand Up @@ -10370,10 +10387,10 @@ declare var MediaKeys: {
interface MediaList {
readonly length: number;
mediaText: string;
toString(): string;
appendMedium(medium: string): void;
deleteMedium(medium: string): void;
item(index: number): string | null;
toString(): number;
[index: number]: string;
}

Expand Down Expand Up @@ -10985,7 +11002,7 @@ interface Node extends EventTarget {
/**
* Returns the previous sibling.
*/
readonly previousSibling: Node | null;
readonly previousSibling: ChildNode | null;
textContent: string | null;
appendChild<T extends Node>(newChild: T): T;
/**
Expand Down Expand Up @@ -12640,6 +12657,7 @@ interface Range extends AbstractRange {
setStartAfter(node: Node): void;
setStartBefore(node: Node): void;
surroundContents(newParent: Node): void;
toString(): string;
readonly END_TO_END: number;
readonly END_TO_START: number;
readonly START_TO_END: number;
Expand All @@ -12653,6 +12671,7 @@ declare var Range: {
readonly END_TO_START: number;
readonly START_TO_END: number;
readonly START_TO_START: number;
toString(): string;
};

interface ReadableByteStreamController {
Expand Down Expand Up @@ -12707,11 +12726,6 @@ interface ReadableStreamDefaultReader<R = any> {
releaseLock(): void;
}

interface ReadableStreamReadResult<T> {
done: boolean;
value: T;
}

interface ReadableStreamReader<R = any> {
cancel(): Promise<void>;
read(): Promise<ReadableStreamReadResult<R>>;
Expand Down Expand Up @@ -14358,7 +14372,7 @@ declare var SVGPathSegMovetoRel: {
};

/** Corresponds to the <pattern> element. */
interface SVGPatternElement extends SVGElement, SVGFitToViewBox, SVGTests, SVGURIReference {
interface SVGPatternElement extends SVGElement, SVGFitToViewBox, SVGURIReference {
readonly height: SVGAnimatedLength;
readonly patternContentUnits: SVGAnimatedEnumeration;
readonly patternTransform: SVGAnimatedTransformList;
Expand Down Expand Up @@ -14464,6 +14478,7 @@ declare var SVGPreserveAspectRatio: {
interface SVGRadialGradientElement extends SVGGradientElement {
readonly cx: SVGAnimatedLength;
readonly cy: SVGAnimatedLength;
readonly fr: SVGAnimatedLength;
readonly fx: SVGAnimatedLength;
readonly fy: SVGAnimatedLength;
readonly r: SVGAnimatedLength;
Expand Down Expand Up @@ -14680,13 +14695,13 @@ interface SVGTests {
interface SVGTextContentElement extends SVGGraphicsElement {
readonly lengthAdjust: SVGAnimatedEnumeration;
readonly textLength: SVGAnimatedLength;
getCharNumAtPosition(point: SVGPoint): number;
getCharNumAtPosition(point?: DOMPointInit): number;
getComputedTextLength(): number;
getEndPositionOfChar(charnum: number): SVGPoint;
getExtentOfChar(charnum: number): SVGRect;
getEndPositionOfChar(charnum: number): DOMPoint;
getExtentOfChar(charnum: number): DOMRect;
getNumberOfChars(): number;
getRotationOfChar(charnum: number): number;
getStartPositionOfChar(charnum: number): SVGPoint;
getStartPositionOfChar(charnum: number): DOMPoint;
getSubStringLength(charnum: number, nchars: number): number;
selectSubString(charnum: number, nchars: number): void;
readonly LENGTHADJUST_SPACING: number;
Expand Down Expand Up @@ -15029,11 +15044,13 @@ interface Selection {
selectAllChildren(node: Node): void;
setBaseAndExtent(anchorNode: Node, anchorOffset: number, focusNode: Node, focusOffset: number): void;
setPosition(node: Node | null, offset?: number): void;
toString(): string;
}

declare var Selection: {
prototype: Selection;
new(): Selection;
toString(): string;
};

interface ServiceUIFrameContext {
Expand Down Expand Up @@ -15660,6 +15677,8 @@ interface TextDecoderCommon {
}

interface TextDecoderStream extends GenericTransformStream, TextDecoderCommon {
readonly readable: ReadableStream<string>;
readonly writable: WritableStream<BufferSource>;
}

declare var TextDecoderStream: {
Expand Down Expand Up @@ -15692,6 +15711,8 @@ interface TextEncoderCommon {
}

interface TextEncoderStream extends GenericTransformStream, TextEncoderCommon {
readonly readable: ReadableStream<Uint8Array>;
readonly writable: WritableStream<string>;
}

declare var TextEncoderStream: {
Expand Down Expand Up @@ -16034,6 +16055,7 @@ interface URL {
host: string;
hostname: string;
href: string;
toString(): string;
readonly origin: string;
password: string;
pathname: string;
Expand Down Expand Up @@ -16081,12 +16103,14 @@ interface URLSearchParams {
*/
set(name: string, value: string): void;
sort(): void;
toString(): string;
forEach(callbackfn: (value: string, key: string, parent: URLSearchParams) => void, thisArg?: any): void;
}

declare var URLSearchParams: {
prototype: URLSearchParams;
new(init?: string[][] | Record<string, string> | string | URLSearchParams): URLSearchParams;
toString(): string;
};

/** This WebVR API interface represents any VR device supported by this API. It includes generic information such as device IDs and descriptions, as well as methods for starting to present a VR scene, retrieving eye parameters and display capabilities, and other important functionality. */
Expand Down Expand Up @@ -18668,7 +18692,7 @@ interface WindowEventHandlersEventMap {
"pagehide": PageTransitionEvent;
"pageshow": PageTransitionEvent;
"popstate": PopStateEvent;
"rejectionhandled": Event;
"rejectionhandled": PromiseRejectionEvent;
"storage": StorageEvent;
"unhandledrejection": PromiseRejectionEvent;
"unload": Event;
Expand All @@ -18687,7 +18711,7 @@ interface WindowEventHandlers {
onpagehide: ((this: WindowEventHandlers, ev: PageTransitionEvent) => any) | null;
onpageshow: ((this: WindowEventHandlers, ev: PageTransitionEvent) => any) | null;
onpopstate: ((this: WindowEventHandlers, ev: PopStateEvent) => any) | null;
onrejectionhandled: ((this: WindowEventHandlers, ev: Event) => any) | null;
onrejectionhandled: ((this: WindowEventHandlers, ev: PromiseRejectionEvent) => any) | null;
onstorage: ((this: WindowEventHandlers, ev: StorageEvent) => any) | null;
onunhandledrejection: ((this: WindowEventHandlers, ev: PromiseRejectionEvent) => any) | null;
onunload: ((this: WindowEventHandlers, ev: Event) => any) | null;
Expand Down Expand Up @@ -19886,10 +19910,10 @@ declare var onsuspend: ((this: Window, ev: Event) => any) | null;
*/
declare var ontimeupdate: ((this: Window, ev: Event) => any) | null;
declare var ontoggle: ((this: Window, ev: Event) => any) | null;
declare var ontouchcancel: ((this: Window, ev: TouchEvent) => any) | null;
declare var ontouchend: ((this: Window, ev: TouchEvent) => any) | null;
declare var ontouchmove: ((this: Window, ev: TouchEvent) => any) | null;
declare var ontouchstart: ((this: Window, ev: TouchEvent) => any) | null;
declare var ontouchcancel: ((this: Window, ev: TouchEvent) => any) | null | undefined;
declare var ontouchend: ((this: Window, ev: TouchEvent) => any) | null | undefined;
declare var ontouchmove: ((this: Window, ev: TouchEvent) => any) | null | undefined;
declare var ontouchstart: ((this: Window, ev: TouchEvent) => any) | null | undefined;
declare var ontransitioncancel: ((this: Window, ev: TransitionEvent) => any) | null;
declare var ontransitionend: ((this: Window, ev: TransitionEvent) => any) | null;
declare var ontransitionrun: ((this: Window, ev: TransitionEvent) => any) | null;
Expand Down Expand Up @@ -19939,7 +19963,7 @@ declare var ononline: ((this: Window, ev: Event) => any) | null;
declare var onpagehide: ((this: Window, ev: PageTransitionEvent) => any) | null;
declare var onpageshow: ((this: Window, ev: PageTransitionEvent) => any) | null;
declare var onpopstate: ((this: Window, ev: PopStateEvent) => any) | null;
declare var onrejectionhandled: ((this: Window, ev: Event) => any) | null;
declare var onrejectionhandled: ((this: Window, ev: PromiseRejectionEvent) => any) | null;
declare var onstorage: ((this: Window, ev: StorageEvent) => any) | null;
declare var onunhandledrejection: ((this: Window, ev: PromiseRejectionEvent) => any) | null;
declare var onunload: ((this: Window, ev: Event) => any) | null;
Expand Down Expand Up @@ -19967,6 +19991,7 @@ type ConstrainDouble = number | ConstrainDoubleRange;
type ConstrainBoolean = boolean | ConstrainBooleanParameters;
type ConstrainDOMString = string | string[] | ConstrainDOMStringParameters;
type PerformanceEntryList = PerformanceEntry[];
type ReadableStreamReadResult<T> = ReadableStreamReadValueResult<T> | ReadableStreamReadDoneResult<T>;
type VibratePattern = number | number[];
type COSEAlgorithmIdentifier = number;
type AuthenticatorSelectionList = AAGUID[];
Expand Down
Loading