@@ -6676,7 +6676,7 @@ interface HTMLFormElement extends HTMLElement {
6676
6676
/** Sets or retrieves the URL to which the form content is sent for processing. */
6677
6677
action: string;
6678
6678
/** Specifies whether autocomplete is applied to an editable text field. */
6679
- autocomplete: "off" | "on" ;
6679
+ autocomplete: AutoFillBase ;
6680
6680
/** Retrieves a collection, in source order, of all controls in a given form. */
6681
6681
readonly elements: HTMLFormControlsCollection;
6682
6682
/** Sets or retrieves the MIME encoding for the form. */
@@ -7105,7 +7105,7 @@ interface HTMLInputElement extends HTMLElement {
7105
7105
/** Sets or retrieves a text alternative to the graphic. */
7106
7106
alt: string;
7107
7107
/** Specifies whether autocomplete is applied to an editable text field. */
7108
- autocomplete: AutoFill | (string & {}) ;
7108
+ autocomplete: AutoFill;
7109
7109
capture: string;
7110
7110
/** Sets or retrieves the state of the check box or radio button. */
7111
7111
checked: boolean;
@@ -7948,7 +7948,7 @@ declare var HTMLScriptElement: {
7948
7948
7949
7949
/** A <select> HTML Element. These elements also share all of the properties and methods of other HTML elements via the HTMLElement interface. */
7950
7950
interface HTMLSelectElement extends HTMLElement {
7951
- autocomplete: AutoFill | (string & {}) ;
7951
+ autocomplete: AutoFill;
7952
7952
disabled: boolean;
7953
7953
/** Retrieves a reference to the form that the object is embedded in. */
7954
7954
readonly form: HTMLFormElement | null;
@@ -8402,7 +8402,7 @@ declare var HTMLTemplateElement: {
8402
8402
8403
8403
/** Provides special properties and methods for manipulating the layout and presentation of <textarea> elements. */
8404
8404
interface HTMLTextAreaElement extends HTMLElement {
8405
- autocomplete: AutoFill | (string & {}) ;
8405
+ autocomplete: AutoFill;
8406
8406
/** Sets or retrieves the width of the object. */
8407
8407
cols: number;
8408
8408
/** Sets or retrieves the initial contents of the object. */
@@ -18482,6 +18482,9 @@ declare function addEventListener(type: string, listener: EventListenerOrEventLi
18482
18482
declare function removeEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
18483
18483
declare function removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
18484
18484
type AlgorithmIdentifier = Algorithm | string;
18485
+ type AutoFill = AutoFillBase | AutoFillField | `${AutoFillSection} ${AutoFillField}` | `${AutoFillAddressKind} ${AutoFillField}` | `${AutoFillSection} ${AutoFillAddressKind} ${AutoFillField}` | `${AutoFillSection} ${AutoFillAddressKind} ${AutoFillField} ${AutoFillCredentialField}` | `${AutoFillAddressKind} ${AutoFillField} ${AutoFillCredentialField}` | `${AutoFillSection} ${AutoFillField} ${AutoFillCredentialField}` | `${AutoFillField} ${AutoFillCredentialField}`;
18486
+ type AutoFillField = AutoFillNormalField | AutoFillContactField | `${AutoFillContactKind} ${AutoFillContactField}`;
18487
+ type AutoFillSection = `section-${string}`;
18485
18488
type BigInteger = Uint8Array;
18486
18489
type BinaryData = ArrayBuffer | ArrayBufferView;
18487
18490
type BlobPart = BufferSource | Blob | string;
@@ -18550,7 +18553,12 @@ type AudioContextLatencyCategory = "balanced" | "interactive" | "playback";
18550
18553
type AudioContextState = "closed" | "running" | "suspended";
18551
18554
type AuthenticatorAttachment = "cross-platform" | "platform";
18552
18555
type AuthenticatorTransport = "ble" | "hybrid" | "internal" | "nfc" | "usb";
18553
- type AutoFill = "additional-name" | "address-level1" | "address-level2" | "address-level3" | "address-level4" | "address-line1" | "address-line2" | "address-line3" | "bday" | "bday-day" | "bday-month" | "bday-year" | "cc-additional-name" | "cc-csc" | "cc-exp" | "cc-exp-month" | "cc-exp-year" | "cc-family-name" | "cc-given-name" | "cc-name" | "cc-number" | "cc-type" | "country" | "country-name" | "current-password" | "email" | "family-name" | "given-name" | "honorific-prefix" | "honorific-suffix" | "impp" | "language" | "name" | "new-password" | "nickname" | "off" | "on" | "one-time-code" | "organization" | "organization-title" | "photo" | "postal-code" | "sex" | "street-address" | "tel" | "tel-area-code" | "tel-country-code" | "tel-extension" | "tel-local" | "tel-national" | "transaction-amount" | "transaction-currency" | "url" | "username" | "webauthn";
18556
+ type AutoFillAddressKind = "billing" | "shipping";
18557
+ type AutoFillBase = "off" | "on";
18558
+ type AutoFillContactField = "email" | "impp" | "tel" | "tel-area-code" | "tel-country-code" | "tel-extension" | "tel-local" | "tel-local-prefix" | "tel-local-suffix" | "tel-national";
18559
+ type AutoFillContactKind = "fax" | "home" | "mobile" | "pager" | "work";
18560
+ type AutoFillCredentialField = "webauthn";
18561
+ type AutoFillNormalField = "additional-name" | "address-level1" | "address-level2" | "address-level3" | "address-level4" | "address-line1" | "address-line2" | "address-line3" | "bday" | "bday-day" | "bday-month" | "bday-year" | "cc-additional-name" | "cc-csc" | "cc-exp" | "cc-exp-month" | "cc-exp-year" | "cc-family-name" | "cc-given-name" | "cc-name" | "cc-number" | "cc-type" | "country" | "country-name" | "current-password" | "family-name" | "given-name" | "honorific-prefix" | "honorific-suffix" | "language" | "name" | "new-password" | "nickname" | "one-time-code" | "organization" | "organization-title" | "photo" | "postal-code" | "sex" | "street-address" | "transaction-amount" | "transaction-currency" | "url" | "username";
18554
18562
type AutoKeyword = "auto";
18555
18563
type AutomationRate = "a-rate" | "k-rate";
18556
18564
type BinaryType = "arraybuffer" | "blob";
0 commit comments