/** This Streams API interface provides a standard abstraction for writing streaming data to a destination, known as a sink. This object comes with built-in backpressure and queuing. */
interfaceWritableStream<W=any>{
readonlylocked:boolean;
abort(reason?:any):Promise<void>;
getWriter():WritableStreamDefaultWriter<W>;
}
interfaceWritableStreamDefaultWriter<W=any>{
readonlyclosed:Promise<void>;
readonlydesiredSize:number|null;
readonlyready:Promise<void>;
abort(reason?:any):Promise<void>;
close():Promise<void>;
releaseLock():void;
write(chunk:W):Promise<void>;
}
interfaceDOMStringList{
/** Returns the number of strings in strings. */
readonlylength:number;
/** Returns true if strings contains string, and false otherwise. */
contains(string:string):boolean;
/** Returns the string with index index from strings. */
item(index:number):string|null;
[index:number]:string;
}
/** The location (URL) of the object it is linked to. Changes done on it are
* reflected on the object it relates to. Both the Document and Window
* interface have such a linked Location, accessible via Document.location and
* Window.location respectively. */
declareinterfaceLocation{
/** Returns a DOMStringList object listing the origins of the ancestor
* browsing contexts, from the parent browsing context to the top-level
* browsing context. */
readonlyancestorOrigins:DOMStringList;
/** Returns the Location object's URL's fragment (includes leading "#" if
* non-empty).
*
* Can be set, to navigate to the same URL with a changed fragment (ignores
* leading "#"). */
hash:string;
/** Returns the Location object's URL's host and port (if different from the
* default port for the scheme).
*
* Can be set, to navigate to the same URL with a changed host and port. */
host:string;
/** Returns the Location object's URL's host.
*
* Can be set, to navigate to the same URL with a changed host. */
hostname:string;
/** Returns the Location object's URL.
*
* Can be set, to navigate to the given URL. */
href:string;
toString():string;
/** Returns the Location object's URL's origin. */
readonlyorigin:string;
/** Returns the Location object's URL's path.
*
* Can be set, to navigate to the same URL with a changed path. */
pathname:string;
/** Returns the Location object's URL's port.
*
* Can be set, to navigate to the same URL with a changed port. */
port:string;
/** Returns the Location object's URL's scheme.
*
* Can be set, to navigate to the same URL with a changed scheme. */
protocol:string;
/** Returns the Location object's URL's query (includes leading "?" if
* non-empty).
*
* Can be set, to navigate to the same URL with a changed query (ignores
* leading "?"). */
search:string;
/**
* Navigates to the given URL.
*/
assign(url:string):void;
/**
* Reloads the current page.
*/
reload():void;
/** Removes the current page from the session history and navigates to the
* given URL. */
replace(url:string):void;
}
typeBufferSource=ArrayBufferView|ArrayBuffer;
...
...
@@ -515,7 +488,7 @@ type FormDataEntryValue = File | string;
* form fields and their values, which can then be easily sent using the
* XMLHttpRequest.send() method. It uses the same format a form would use if the
* encoding type were set to "multipart/form-data". */