@@ -422,7 +422,7 @@ interface ExtendableMessageEventInit extends ExtendableEventInit {
422
422
lastEventId?: string;
423
423
origin?: string;
424
424
ports?: MessagePort[];
425
- source?: object | ServiceWorker | MessagePort;
425
+ source?: object | ServiceWorker | MessagePort | null ;
426
426
}
427
427
428
428
interface FetchEventInit extends ExtendableEventInit {
@@ -501,7 +501,7 @@ interface IDBIndexParameters {
501
501
502
502
interface IDBObjectStoreParameters {
503
503
autoIncrement?: boolean;
504
- keyPath?: string | string[];
504
+ keyPath?: string | string[] | null ;
505
505
}
506
506
507
507
interface IDBVersionChangeEventInit extends EventInit {
@@ -1250,7 +1250,7 @@ interface PushSubscriptionJSON {
1250
1250
}
1251
1251
1252
1252
interface PushSubscriptionOptionsInit {
1253
- applicationServerKey?: BufferSource | string;
1253
+ applicationServerKey?: BufferSource | string | null ;
1254
1254
userVisibleOnly?: boolean;
1255
1255
}
1256
1256
@@ -7699,7 +7699,7 @@ interface HTMLOptionsCollection extends HTMLCollectionOf<HTMLOptionElement> {
7699
7699
* This method will throw a "HierarchyRequestError" DOMException if
7700
7700
* element is an ancestor of the element into which it is to be inserted.
7701
7701
*/
7702
- add(element: HTMLOptionElement | HTMLOptGroupElement, before?: HTMLElement | number): void;
7702
+ add(element: HTMLOptionElement | HTMLOptGroupElement, before?: HTMLElement | number | null ): void;
7703
7703
/**
7704
7704
* Removes the item with index index from the collection.
7705
7705
*/
@@ -7964,7 +7964,7 @@ interface HTMLSelectElement extends HTMLElement {
7964
7964
* @param element Variant of type Number that specifies the index position in the collection where the element is placed. If no value is given, the method places the element at the end of the collection.
7965
7965
* @param before Variant of type Object that specifies an element to insert before, or null to append the object to the collection.
7966
7966
*/
7967
- add(element: HTMLOptionElement | HTMLOptGroupElement, before?: HTMLElement | number): void;
7967
+ add(element: HTMLOptionElement | HTMLOptGroupElement, before?: HTMLElement | number | null ): void;
7968
7968
/**
7969
7969
* Returns whether a form will validate when it is submitted, without having to submit it.
7970
7970
*/
@@ -16414,7 +16414,7 @@ interface XMLHttpRequest extends XMLHttpRequestEventTarget {
16414
16414
* Initiates the request. The optional argument provides the request body. The argument is ignored if request method is GET or HEAD.
16415
16415
* Throws an "InvalidStateError" DOMException if either state is not opened or the send() flag is set.
16416
16416
*/
16417
- send(body?: Document | BodyInit): void;
16417
+ send(body?: Document | BodyInit | null ): void;
16418
16418
/**
16419
16419
* Combines a header in author request headers.
16420
16420
* Throws an "InvalidStateError" DOMException if either state is not opened or the send() flag is set.
0 commit comments