Skip to content

Commit 2d928d3

Browse files
committed
Rename type
1 parent 4ad16bd commit 2d928d3

File tree

5 files changed

+19
-15
lines changed

5 files changed

+19
-15
lines changed

baselines/dom.generated.d.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17154,6 +17154,7 @@ declare var HTMLImageElement: {
1715417154
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement)
1715517155
*/
1715617156
interface HTMLInputElement extends HTMLElement, PopoverTargetAttributes {
17157+
SelectionDirection: SelectionDirection;
1715717158
/**
1715817159
* The **`accept`** property of the HTMLInputElement interface reflects the <input> element's accept attribute, generally a comma-separated list of unique file type specifiers providing a hint for the expected file type for an <input> of type file. If the attribute is not explicitly set, the accept property is an empty string.
1715917160
*
@@ -17341,7 +17342,7 @@ interface HTMLInputElement extends HTMLElement, PopoverTargetAttributes {
1734117342
*
1734217343
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/selectionDirection)
1734317344
*/
17344-
selectionDirection: Directions | null;
17345+
selectionDirection: string | null;
1734517346
/**
1734617347
* The **`selectionEnd`** property of the HTMLInputElement interface is a number that represents the end index of the selected text. That is, it represents the index of the character immediately following the selection. Likewise, when there is no selection, this returns the offset of the character immediately following the current text input cursor position.
1734717348
*
@@ -17470,7 +17471,7 @@ interface HTMLInputElement extends HTMLElement, PopoverTargetAttributes {
1747017471
*
1747117472
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/setSelectionRange)
1747217473
*/
17473-
setSelectionRange(start: number | null, end: number | null, direction?: Directions): void;
17474+
setSelectionRange(start: number | null, end: number | null, direction?: SelectionDirection): void;
1747417475
/**
1747517476
* The **`HTMLInputElement.showPicker()`** method displays the browser picker for an input element.
1747617477
*
@@ -42433,7 +42434,6 @@ type ConstrainDouble = number | ConstrainDoubleRange;
4243342434
type ConstrainULong = number | ConstrainULongRange;
4243442435
type CookieList = CookieListItem[];
4243542436
type DOMHighResTimeStamp = number;
42436-
type Directions = "forward" | "backward" | "none";
4243742437
type EpochTimeStamp = number;
4243842438
type EventListenerOrEventListenerObject = EventListener | EventListenerObject;
4243942439
type FileSystemWriteChunkType = BufferSource | Blob | string | WriteParams;
@@ -42479,6 +42479,7 @@ type ReadableStreamReader<T> = ReadableStreamDefaultReader<T> | ReadableStreamBY
4247942479
type RenderingContext = CanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext;
4248042480
type ReportList = Report[];
4248142481
type RequestInfo = Request | string;
42482+
type SelectionDirection = "forward" | "backward" | "none";
4248242483
type TexImageSource = ImageBitmap | ImageData | HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | OffscreenCanvas | VideoFrame;
4248342484
type TimerHandler = string | Function;
4248442485
type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | ReadableStream | WritableStream | TransformStream | AudioData | VideoFrame | RTCDataChannel | ArrayBuffer;

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17136,6 +17136,7 @@ declare var HTMLImageElement: {
1713617136
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement)
1713717137
*/
1713817138
interface HTMLInputElement extends HTMLElement, PopoverTargetAttributes {
17139+
SelectionDirection: SelectionDirection;
1713917140
/**
1714017141
* The **`accept`** property of the HTMLInputElement interface reflects the <input> element's accept attribute, generally a comma-separated list of unique file type specifiers providing a hint for the expected file type for an <input> of type file. If the attribute is not explicitly set, the accept property is an empty string.
1714117142
*
@@ -17323,7 +17324,7 @@ interface HTMLInputElement extends HTMLElement, PopoverTargetAttributes {
1732317324
*
1732417325
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/selectionDirection)
1732517326
*/
17326-
selectionDirection: Directions | null;
17327+
selectionDirection: string | null;
1732717328
/**
1732817329
* The **`selectionEnd`** property of the HTMLInputElement interface is a number that represents the end index of the selected text. That is, it represents the index of the character immediately following the selection. Likewise, when there is no selection, this returns the offset of the character immediately following the current text input cursor position.
1732917330
*
@@ -17452,7 +17453,7 @@ interface HTMLInputElement extends HTMLElement, PopoverTargetAttributes {
1745217453
*
1745317454
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/setSelectionRange)
1745417455
*/
17455-
setSelectionRange(start: number | null, end: number | null, direction?: Directions): void;
17456+
setSelectionRange(start: number | null, end: number | null, direction?: SelectionDirection): void;
1745617457
/**
1745717458
* The **`HTMLInputElement.showPicker()`** method displays the browser picker for an input element.
1745817459
*
@@ -42407,7 +42408,6 @@ type ConstrainDouble = number | ConstrainDoubleRange;
4240742408
type ConstrainULong = number | ConstrainULongRange;
4240842409
type CookieList = CookieListItem[];
4240942410
type DOMHighResTimeStamp = number;
42410-
type Directions = "forward" | "backward" | "none";
4241142411
type EpochTimeStamp = number;
4241242412
type EventListenerOrEventListenerObject = EventListener | EventListenerObject;
4241342413
type FileSystemWriteChunkType = BufferSource | Blob | string | WriteParams;
@@ -42453,6 +42453,7 @@ type ReadableStreamReader<T> = ReadableStreamDefaultReader<T> | ReadableStreamBY
4245342453
type RenderingContext = CanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext;
4245442454
type ReportList = Report[];
4245542455
type RequestInfo = Request | string;
42456+
type SelectionDirection = "forward" | "backward" | "none";
4245642457
type TexImageSource = ImageBitmap | ImageData | HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | OffscreenCanvas | VideoFrame;
4245742458
type TimerHandler = string | Function;
4245842459
type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | ReadableStream | WritableStream | TransformStream | AudioData | VideoFrame | RTCDataChannel | ArrayBuffer;

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17151,6 +17151,7 @@ declare var HTMLImageElement: {
1715117151
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement)
1715217152
*/
1715317153
interface HTMLInputElement extends HTMLElement, PopoverTargetAttributes {
17154+
SelectionDirection: SelectionDirection;
1715417155
/**
1715517156
* The **`accept`** property of the HTMLInputElement interface reflects the <input> element's accept attribute, generally a comma-separated list of unique file type specifiers providing a hint for the expected file type for an <input> of type file. If the attribute is not explicitly set, the accept property is an empty string.
1715617157
*
@@ -17338,7 +17339,7 @@ interface HTMLInputElement extends HTMLElement, PopoverTargetAttributes {
1733817339
*
1733917340
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/selectionDirection)
1734017341
*/
17341-
selectionDirection: Directions | null;
17342+
selectionDirection: string | null;
1734217343
/**
1734317344
* The **`selectionEnd`** property of the HTMLInputElement interface is a number that represents the end index of the selected text. That is, it represents the index of the character immediately following the selection. Likewise, when there is no selection, this returns the offset of the character immediately following the current text input cursor position.
1734417345
*
@@ -17467,7 +17468,7 @@ interface HTMLInputElement extends HTMLElement, PopoverTargetAttributes {
1746717468
*
1746817469
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/setSelectionRange)
1746917470
*/
17470-
setSelectionRange(start: number | null, end: number | null, direction?: Directions): void;
17471+
setSelectionRange(start: number | null, end: number | null, direction?: SelectionDirection): void;
1747117472
/**
1747217473
* The **`HTMLInputElement.showPicker()`** method displays the browser picker for an input element.
1747317474
*
@@ -42430,7 +42431,6 @@ type ConstrainDouble = number | ConstrainDoubleRange;
4243042431
type ConstrainULong = number | ConstrainULongRange;
4243142432
type CookieList = CookieListItem[];
4243242433
type DOMHighResTimeStamp = number;
42433-
type Directions = "forward" | "backward" | "none";
4243442434
type EpochTimeStamp = number;
4243542435
type EventListenerOrEventListenerObject = EventListener | EventListenerObject;
4243642436
type FileSystemWriteChunkType = BufferSource | Blob | string | WriteParams;
@@ -42476,6 +42476,7 @@ type ReadableStreamReader<T> = ReadableStreamDefaultReader<T> | ReadableStreamBY
4247642476
type RenderingContext = CanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext;
4247742477
type ReportList = Report[];
4247842478
type RequestInfo = Request | string;
42479+
type SelectionDirection = "forward" | "backward" | "none";
4247942480
type TexImageSource = ImageBitmap | ImageData | HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | OffscreenCanvas | VideoFrame;
4248042481
type TimerHandler = string | Function;
4248142482
type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | ReadableStream | WritableStream | TransformStream | AudioData | VideoFrame | RTCDataChannel | ArrayBuffer;

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17151,6 +17151,7 @@ declare var HTMLImageElement: {
1715117151
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement)
1715217152
*/
1715317153
interface HTMLInputElement extends HTMLElement, PopoverTargetAttributes {
17154+
SelectionDirection: SelectionDirection;
1715417155
/**
1715517156
* The **`accept`** property of the HTMLInputElement interface reflects the <input> element's accept attribute, generally a comma-separated list of unique file type specifiers providing a hint for the expected file type for an <input> of type file. If the attribute is not explicitly set, the accept property is an empty string.
1715617157
*
@@ -17338,7 +17339,7 @@ interface HTMLInputElement extends HTMLElement, PopoverTargetAttributes {
1733817339
*
1733917340
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/selectionDirection)
1734017341
*/
17341-
selectionDirection: Directions | null;
17342+
selectionDirection: string | null;
1734217343
/**
1734317344
* The **`selectionEnd`** property of the HTMLInputElement interface is a number that represents the end index of the selected text. That is, it represents the index of the character immediately following the selection. Likewise, when there is no selection, this returns the offset of the character immediately following the current text input cursor position.
1734417345
*
@@ -17467,7 +17468,7 @@ interface HTMLInputElement extends HTMLElement, PopoverTargetAttributes {
1746717468
*
1746817469
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/setSelectionRange)
1746917470
*/
17470-
setSelectionRange(start: number | null, end: number | null, direction?: Directions): void;
17471+
setSelectionRange(start: number | null, end: number | null, direction?: SelectionDirection): void;
1747117472
/**
1747217473
* The **`HTMLInputElement.showPicker()`** method displays the browser picker for an input element.
1747317474
*
@@ -42430,7 +42431,6 @@ type ConstrainDouble = number | ConstrainDoubleRange;
4243042431
type ConstrainULong = number | ConstrainULongRange;
4243142432
type CookieList = CookieListItem[];
4243242433
type DOMHighResTimeStamp = number;
42433-
type Directions = "forward" | "backward" | "none";
4243442434
type EpochTimeStamp = number;
4243542435
type EventListenerOrEventListenerObject = EventListener | EventListenerObject;
4243642436
type FileSystemWriteChunkType = BufferSource | Blob | string | WriteParams;
@@ -42476,6 +42476,7 @@ type ReadableStreamReader<T> = ReadableStreamDefaultReader<T> | ReadableStreamBY
4247642476
type RenderingContext = CanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext;
4247742477
type ReportList = Report[];
4247842478
type RequestInfo = Request | string;
42479+
type SelectionDirection = "forward" | "backward" | "none";
4247942480
type TexImageSource = ImageBitmap | ImageData | HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | OffscreenCanvas | VideoFrame;
4248042481
type TimerHandler = string | Function;
4248142482
type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | ReadableStream | WritableStream | TransformStream | AudioData | VideoFrame | RTCDataChannel | ArrayBuffer;

inputfiles/patches/html.kdl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,15 +55,15 @@ interface HTMLInputElement {
5555
}
5656
property autocomplete type=AutoFill
5757
property valueAsDate type=Date
58-
property selectionDirection type=Directions
58+
property SelectionDirection type=SelectionDirection
5959
method setSelectionRange signatureIndex=0 {
6060
param start nullable=#true
6161
param end nullable=#true
62-
param direction type=Directions
62+
param direction type=SelectionDirection
6363
}
6464
}
6565

66-
typedef Directions overrideType=#""forward" | "backward" | "none""#
66+
typedef SelectionDirection overrideType=#""forward" | "backward" | "none""#
6767

6868
dictionary StructuredSerializeOptions {
6969
member transfer {

0 commit comments

Comments
 (0)