2016-12-15 07:03:00 +01:00
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Copyright ( c ) Microsoft Corporation . All rights reserved .
Licensed under the Apache License , Version 2.0 ( the "License" ) ; you may not use
this file except in compliance with the License . You may obtain a copy of the
License at http : //www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN * AS IS * BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND , EITHER EXPRESS OR IMPLIED , INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE , FITNESS FOR A PARTICULAR PURPOSE ,
MERCHANTABLITY OR NON - INFRINGEMENT .
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License .
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/// <reference no-default-lib="true"/>
/////////////////////////////
2017-08-01 00:54:41 +02:00
/// Worker APIs
2016-12-15 07:03:00 +01:00
/////////////////////////////
2018-03-29 02:46:57 +02:00
interface AddEventListenerOptions extends EventListenerOptions {
once? : boolean ;
passive? : boolean ;
}
2018-08-17 18:13:43 +02:00
interface AesCbcParams extends Algorithm {
iv : Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer ;
}
interface AesCtrParams extends Algorithm {
counter : Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer ;
length : number ;
}
interface AesDerivedKeyParams extends Algorithm {
length : number ;
}
interface AesGcmParams extends Algorithm {
additionalData? : Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer ;
iv : Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer ;
tagLength? : number ;
}
interface AesKeyAlgorithm extends KeyAlgorithm {
length : number ;
}
interface AesKeyGenParams extends Algorithm {
length : number ;
}
2016-12-15 07:03:00 +01:00
interface Algorithm {
name : string ;
}
2018-06-11 05:05:12 +02:00
interface BlobPropertyBag {
2018-11-13 01:27:38 +01:00
endings? : EndingType ;
2018-06-11 05:05:12 +02:00
type ? : string ;
}
2017-02-15 23:44:31 +01:00
interface CacheQueryOptions {
ignoreMethod? : boolean ;
2017-08-01 00:54:41 +02:00
ignoreSearch? : boolean ;
2017-02-15 23:44:31 +01:00
ignoreVary? : boolean ;
}
2019-07-29 19:33:43 +02:00
interface CanvasRenderingContext2DSettings {
alpha? : boolean ;
desynchronized? : boolean ;
}
2018-03-29 02:46:57 +02:00
interface ClientQueryOptions {
includeUncontrolled? : boolean ;
type ? : ClientTypes ;
}
2017-02-15 23:44:31 +01:00
interface CloseEventInit extends EventInit {
code? : number ;
reason? : string ;
2017-08-01 00:54:41 +02:00
wasClean? : boolean ;
2017-02-15 23:44:31 +01:00
}
2018-08-17 18:13:43 +02:00
interface CryptoKeyPair {
privateKey? : CryptoKey ;
publicKey? : CryptoKey ;
}
interface CustomEventInit < T = any > extends EventInit {
detail? : T ;
}
2018-06-11 05:05:12 +02:00
interface DOMMatrix2DInit {
a? : number ;
b? : number ;
c? : number ;
d? : number ;
e? : number ;
f? : number ;
m11? : number ;
m12? : number ;
m21? : number ;
m22? : number ;
m41? : number ;
m42? : number ;
}
interface DOMMatrixInit extends DOMMatrix2DInit {
is2D? : boolean ;
m13? : number ;
m14? : number ;
m23? : number ;
m24? : number ;
m31? : number ;
m32? : number ;
m33? : number ;
m34? : number ;
m43? : number ;
m44? : number ;
}
interface DOMPointInit {
w? : number ;
x? : number ;
y? : number ;
z? : number ;
}
interface DOMQuadInit {
p1? : DOMPointInit ;
p2? : DOMPointInit ;
p3? : DOMPointInit ;
p4? : DOMPointInit ;
}
interface DOMRectInit {
height? : number ;
width? : number ;
x? : number ;
y? : number ;
}
2019-07-29 19:33:43 +02:00
interface DevicePermissionDescriptor extends PermissionDescriptor {
deviceId? : string ;
name : "camera" | "microphone" | "speaker" ;
}
2018-08-17 18:13:43 +02:00
interface EcKeyGenParams extends Algorithm {
namedCurve : NamedCurve ;
}
interface EcKeyImportParams extends Algorithm {
namedCurve : NamedCurve ;
}
interface EcdhKeyDeriveParams extends Algorithm {
public : CryptoKey ;
}
interface EcdsaParams extends Algorithm {
hash : HashAlgorithmIdentifier ;
}
2018-03-29 02:46:57 +02:00
interface ErrorEventInit extends EventInit {
colno? : number ;
error? : any ;
filename? : string ;
lineno? : number ;
message? : string ;
}
2016-12-15 07:03:00 +01:00
interface EventInit {
bubbles? : boolean ;
cancelable? : boolean ;
2018-06-11 05:05:12 +02:00
composed? : boolean ;
2018-03-29 02:46:57 +02:00
}
interface EventListenerOptions {
capture? : boolean ;
}
2019-02-28 23:35:03 +01:00
interface EventSourceInit {
withCredentials? : boolean ;
}
2018-03-29 02:46:57 +02:00
interface ExtendableEventInit extends EventInit {
}
interface ExtendableMessageEventInit extends ExtendableEventInit {
data? : any ;
lastEventId? : string ;
origin? : string ;
2018-06-11 05:05:12 +02:00
ports? : MessagePort [ ] ;
2018-08-17 18:13:43 +02:00
source? : Client | ServiceWorker | MessagePort | null ;
2018-03-29 02:46:57 +02:00
}
interface FetchEventInit extends ExtendableEventInit {
clientId? : string ;
2018-08-17 18:13:43 +02:00
preloadResponse? : Promise < any > ;
2019-07-29 19:33:43 +02:00
replacesClientId? : string ;
2018-03-29 02:46:57 +02:00
request : Request ;
2018-06-11 05:05:12 +02:00
resultingClientId? : string ;
2016-12-15 07:03:00 +01:00
}
2018-06-11 05:05:12 +02:00
interface FilePropertyBag extends BlobPropertyBag {
lastModified? : number ;
}
2017-02-15 23:44:31 +01:00
interface GetNotificationOptions {
tag? : string ;
}
2018-08-17 18:13:43 +02:00
interface HmacImportParams extends Algorithm {
hash : HashAlgorithmIdentifier ;
length? : number ;
}
interface HmacKeyGenParams extends Algorithm {
hash : HashAlgorithmIdentifier ;
length? : number ;
}
2016-12-15 07:03:00 +01:00
interface IDBIndexParameters {
multiEntry? : boolean ;
unique ? : boolean ;
}
interface IDBObjectStoreParameters {
autoIncrement? : boolean ;
2018-08-17 18:13:43 +02:00
keyPath? : string | string [ ] | null ;
2016-12-15 07:03:00 +01:00
}
2018-06-11 05:05:12 +02:00
interface IDBVersionChangeEventInit extends EventInit {
newVersion? : number | null ;
oldVersion? : number ;
}
2019-07-29 19:33:43 +02:00
interface ImageBitmapRenderingContextSettings {
alpha? : boolean ;
}
interface ImageEncodeOptions {
quality? : number ;
type ? : string ;
}
2018-08-17 18:13:43 +02:00
interface JsonWebKey {
alg? : string ;
crv? : string ;
d? : string ;
dp? : string ;
dq? : string ;
e? : string ;
ext? : boolean ;
k? : string ;
key_ops? : string [ ] ;
kty? : string ;
n? : string ;
oth? : RsaOtherPrimesInfo [ ] ;
p? : string ;
q? : string ;
qi? : string ;
use? : string ;
x? : string ;
y? : string ;
}
2016-12-15 07:03:00 +01:00
interface KeyAlgorithm {
2018-03-29 02:46:57 +02:00
name : string ;
2016-12-15 07:03:00 +01:00
}
2017-02-15 23:44:31 +01:00
interface MessageEventInit extends EventInit {
data? : any ;
2018-03-29 02:46:57 +02:00
lastEventId? : string ;
2017-02-15 23:44:31 +01:00
origin? : string ;
ports? : MessagePort [ ] ;
2018-08-17 18:13:43 +02:00
source? : MessageEventSource | null ;
2018-03-29 02:46:57 +02:00
}
2019-07-29 19:33:43 +02:00
interface MidiPermissionDescriptor extends PermissionDescriptor {
name : "midi" ;
sysex? : boolean ;
}
interface MultiCacheQueryOptions extends CacheQueryOptions {
cacheName? : string ;
}
2018-06-11 05:05:12 +02:00
interface NavigationPreloadState {
enabled? : boolean ;
headerValue? : string ;
}
interface NotificationAction {
action : string ;
icon? : string ;
title : string ;
}
2018-03-29 02:46:57 +02:00
interface NotificationEventInit extends ExtendableEventInit {
action? : string ;
notification : Notification ;
2017-02-15 23:44:31 +01:00
}
interface NotificationOptions {
2018-06-11 05:05:12 +02:00
actions? : NotificationAction [ ] ;
badge? : string ;
2017-08-01 00:54:41 +02:00
body? : string ;
2018-03-29 02:46:57 +02:00
data? : any ;
2017-04-26 23:38:47 +02:00
dir? : NotificationDirection ;
2017-08-01 00:54:41 +02:00
icon? : string ;
2018-06-11 05:05:12 +02:00
image? : string ;
2017-02-15 23:44:31 +01:00
lang? : string ;
2018-06-11 05:05:12 +02:00
renotify? : boolean ;
requireInteraction? : boolean ;
silent? : boolean ;
2017-02-15 23:44:31 +01:00
tag? : string ;
2018-06-11 05:05:12 +02:00
timestamp? : number ;
vibrate? : VibratePattern ;
2017-02-15 23:44:31 +01:00
}
2018-08-17 18:13:43 +02:00
interface Pbkdf2Params extends Algorithm {
hash : HashAlgorithmIdentifier ;
iterations : number ;
salt : Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer ;
}
2018-06-11 05:05:12 +02:00
interface PerformanceObserverInit {
buffered? : boolean ;
2019-07-29 19:33:43 +02:00
entryTypes? : string [ ] ;
type ? : string ;
}
interface PermissionDescriptor {
name : PermissionName ;
2017-04-26 23:38:47 +02:00
}
2018-11-13 01:27:38 +01:00
interface PipeOptions {
preventAbort? : boolean ;
preventCancel? : boolean ;
preventClose? : boolean ;
2019-07-29 19:33:43 +02:00
signal? : AbortSignal ;
}
interface PostMessageOptions {
transfer? : any [ ] ;
2018-11-13 01:27:38 +01:00
}
2018-03-29 02:46:57 +02:00
interface ProgressEventInit extends EventInit {
lengthComputable? : boolean ;
loaded? : number ;
total? : number ;
}
2018-06-11 05:05:12 +02:00
interface PromiseRejectionEventInit extends EventInit {
promise : Promise < any > ;
reason? : any ;
}
2018-03-29 02:46:57 +02:00
interface PushEventInit extends ExtendableEventInit {
2018-06-11 05:05:12 +02:00
data? : PushMessageDataInit ;
2018-03-29 02:46:57 +02:00
}
2019-07-29 19:33:43 +02:00
interface PushPermissionDescriptor extends PermissionDescriptor {
name : "push" ;
userVisibleOnly? : boolean ;
}
2018-03-29 02:46:57 +02:00
interface PushSubscriptionChangeInit extends ExtendableEventInit {
newSubscription? : PushSubscription ;
oldSubscription? : PushSubscription ;
}
2018-06-11 05:05:12 +02:00
interface PushSubscriptionJSON {
endpoint? : string ;
expirationTime? : number | null ;
keys? : Record < string , string > ;
}
2017-02-15 23:44:31 +01:00
interface PushSubscriptionOptionsInit {
2018-08-17 18:13:43 +02:00
applicationServerKey? : BufferSource | string | null ;
2017-08-01 00:54:41 +02:00
userVisibleOnly? : boolean ;
2017-02-15 23:44:31 +01:00
}
2018-11-13 01:27:38 +01:00
interface QueuingStrategy < T = any > {
highWaterMark? : number ;
size? : QueuingStrategySizeCallback < T > ;
}
2018-06-11 05:05:12 +02:00
interface RegistrationOptions {
scope? : string ;
type ? : WorkerType ;
updateViaCache? : ServiceWorkerUpdateViaCache ;
}
2017-02-15 23:44:31 +01:00
interface RequestInit {
2019-07-29 19:33:43 +02:00
/ * *
* A BodyInit object or null to set request ' s body .
* /
2018-06-11 05:05:12 +02:00
body? : BodyInit | null ;
2019-07-29 19:33:43 +02:00
/ * *
* A string indicating how the request will interact with the browser 's cache to set request' s cache .
* /
2017-04-26 23:38:47 +02:00
cache? : RequestCache ;
2019-07-29 19:33:43 +02:00
/ * *
* A string indicating whether credentials will be sent with the request always , never , or only when sent to a same - origin URL . Sets request ' s credentials .
* /
2017-08-01 00:54:41 +02:00
credentials? : RequestCredentials ;
2019-07-29 19:33:43 +02:00
/ * *
* A Headers object , an object literal , or an array of two - item arrays to set request ' s headers .
* /
2017-12-02 20:16:59 +01:00
headers? : HeadersInit ;
2019-07-29 19:33:43 +02:00
/ * *
* A cryptographic hash of the resource to be fetched by request . Sets request ' s integrity .
* /
2017-02-15 23:44:31 +01:00
integrity? : string ;
2019-07-29 19:33:43 +02:00
/ * *
* A boolean to set request ' s keepalive .
* /
2017-02-15 23:44:31 +01:00
keepalive? : boolean ;
2019-07-29 19:33:43 +02:00
/ * *
* A string to set request ' s method .
* /
2017-08-01 00:54:41 +02:00
method? : string ;
2019-07-29 19:33:43 +02:00
/ * *
* A string to indicate whether the request will use CORS , or will be restricted to same - origin URLs . Sets request ' s mode .
* /
2017-08-01 00:54:41 +02:00
mode? : RequestMode ;
2019-07-29 19:33:43 +02:00
/ * *
* A string indicating whether request follows redirects , results in an error upon encountering a redirect , or returns the redirect ( in an opaque fashion ) . Sets request ' s redirect .
* /
2017-08-01 00:54:41 +02:00
redirect? : RequestRedirect ;
2019-07-29 19:33:43 +02:00
/ * *
* A string whose value is a same - origin URL , "about:client" , or the empty string , to set request ' s referrer .
* /
2017-08-01 00:54:41 +02:00
referrer? : string ;
2019-07-29 19:33:43 +02:00
/ * *
* A referrer policy to set request ' s referrerPolicy .
* /
2017-08-01 00:54:41 +02:00
referrerPolicy? : ReferrerPolicy ;
2019-07-29 19:33:43 +02:00
/ * *
* An AbortSignal to set request ' s signal .
* /
2018-08-17 18:13:43 +02:00
signal? : AbortSignal | null ;
2019-07-29 19:33:43 +02:00
/ * *
* Can only be null . Used to disassociate request from any Window .
* /
2017-02-15 23:44:31 +01:00
window ? : any ;
}
interface ResponseInit {
2017-12-02 20:16:59 +01:00
headers? : HeadersInit ;
2017-02-15 23:44:31 +01:00
status? : number ;
statusText? : string ;
}
2018-08-17 18:13:43 +02:00
interface RsaHashedImportParams extends Algorithm {
hash : HashAlgorithmIdentifier ;
}
interface RsaHashedKeyGenParams extends RsaKeyGenParams {
hash : HashAlgorithmIdentifier ;
}
interface RsaKeyGenParams extends Algorithm {
modulusLength : number ;
publicExponent : BigInteger ;
}
interface RsaOaepParams extends Algorithm {
label? : Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer ;
}
interface RsaOtherPrimesInfo {
d? : string ;
r? : string ;
t? : string ;
}
interface RsaPssParams extends Algorithm {
saltLength : number ;
}
2018-06-11 05:05:12 +02:00
interface StorageEstimate {
quota? : number ;
usage? : number ;
}
2017-02-15 23:44:31 +01:00
interface SyncEventInit extends ExtendableEventInit {
lastChance? : boolean ;
2018-03-29 02:46:57 +02:00
tag : string ;
2017-02-15 23:44:31 +01:00
}
2018-06-11 05:05:12 +02:00
interface TextDecodeOptions {
stream? : boolean ;
}
interface TextDecoderOptions {
fatal? : boolean ;
ignoreBOM? : boolean ;
}
2019-07-29 19:33:43 +02:00
interface TextEncoderEncodeIntoResult {
read? : number ;
written? : number ;
}
2018-11-13 01:27:38 +01:00
interface Transformer < I = any , O = any > {
flush? : TransformStreamDefaultControllerCallback < O > ;
readableType? : undefined ;
start? : TransformStreamDefaultControllerCallback < O > ;
transform? : TransformStreamDefaultControllerTransformCallback < I , O > ;
writableType? : undefined ;
}
interface UnderlyingByteSource {
autoAllocateChunkSize? : number ;
cancel? : ReadableStreamErrorCallback ;
pull? : ReadableByteStreamControllerCallback ;
start? : ReadableByteStreamControllerCallback ;
type : "bytes" ;
}
interface UnderlyingSink < W = any > {
abort? : WritableStreamErrorCallback ;
close? : WritableStreamDefaultControllerCloseCallback ;
start? : WritableStreamDefaultControllerStartCallback ;
type ? : undefined ;
write? : WritableStreamDefaultControllerWriteCallback < W > ;
}
interface UnderlyingSource < R = any > {
cancel? : ReadableStreamErrorCallback ;
pull? : ReadableStreamDefaultControllerCallback < R > ;
start? : ReadableStreamDefaultControllerCallback < R > ;
type ? : undefined ;
}
interface WebGLContextAttributes {
2019-07-29 19:33:43 +02:00
alpha? : boolean ;
antialias? : boolean ;
depth? : boolean ;
desynchronized? : boolean ;
2018-11-13 01:27:38 +01:00
failIfMajorPerformanceCaveat? : boolean ;
powerPreference? : WebGLPowerPreference ;
2019-07-29 19:33:43 +02:00
premultipliedAlpha? : boolean ;
preserveDrawingBuffer? : boolean ;
stencil? : boolean ;
2018-11-13 01:27:38 +01:00
}
interface WebGLContextEventInit extends EventInit {
statusMessage? : string ;
}
interface WorkerOptions {
credentials? : RequestCredentials ;
name? : string ;
type ? : WorkerType ;
}
2016-12-15 07:03:00 +01:00
interface EventListener {
( evt : Event ) : void ;
}
2019-02-28 23:35:03 +01:00
/** The ANGLE_instanced_arrays extension is part of the WebGL API and allows to draw the same object, or groups of similar objects multiple times, if they share the same vertex data, primitive count and type. */
2018-11-13 01:27:38 +01:00
interface ANGLE_instanced_arrays {
drawArraysInstancedANGLE ( mode : GLenum , first : GLint , count : GLsizei , primcount : GLsizei ) : void ;
drawElementsInstancedANGLE ( mode : GLenum , count : GLsizei , type : GLenum , offset : GLintptr , primcount : GLsizei ) : void ;
vertexAttribDivisorANGLE ( index : GLuint , divisor : GLuint ) : void ;
readonly VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE : GLenum ;
}
2019-07-29 19:33:43 +02:00
/** A controller object that allows you to abort one or more DOM requests as and when desired. */
2018-08-17 18:13:43 +02:00
interface AbortController {
/ * *
* Returns the AbortSignal object associated with this object .
* /
readonly signal : AbortSignal ;
/ * *
2019-07-29 19:33:43 +02:00
* Invoking this method will set this object 's AbortSignal' s aborted flag and signal to any observers that the associated activity is to be aborted .
2018-08-17 18:13:43 +02:00
* /
abort ( ) : void ;
}
declare var AbortController : {
prototype : AbortController ;
new ( ) : AbortController ;
} ;
interface AbortSignalEventMap {
2019-02-28 23:35:03 +01:00
"abort" : Event ;
2018-08-17 18:13:43 +02:00
}
2019-07-29 19:33:43 +02:00
/** A signal object that allows you to communicate with a DOM request (such as a Fetch) and abort it if required via an AbortController object. */
2018-08-17 18:13:43 +02:00
interface AbortSignal extends EventTarget {
/ * *
2019-07-29 19:33:43 +02:00
* Returns true if this AbortSignal ' s AbortController has signaled to abort , and false otherwise .
2018-08-17 18:13:43 +02:00
* /
readonly aborted : boolean ;
2019-02-28 23:35:03 +01:00
onabort : ( ( this : AbortSignal , ev : Event ) = > any ) | null ;
2018-08-17 18:13:43 +02:00
addEventListener < K extends keyof AbortSignalEventMap > ( type : K , listener : ( this : AbortSignal , ev : AbortSignalEventMap [ K ] ) = > any , options? : boolean | AddEventListenerOptions ) : void ;
addEventListener ( type : string , listener : EventListenerOrEventListenerObject , options? : boolean | AddEventListenerOptions ) : void ;
removeEventListener < K extends keyof AbortSignalEventMap > ( type : K , listener : ( this : AbortSignal , ev : AbortSignalEventMap [ K ] ) = > any , options? : boolean | EventListenerOptions ) : void ;
removeEventListener ( type : string , listener : EventListenerOrEventListenerObject , options? : boolean | EventListenerOptions ) : void ;
}
declare var AbortSignal : {
prototype : AbortSignal ;
new ( ) : AbortSignal ;
} ;
2018-03-29 02:46:57 +02:00
interface AbstractWorkerEventMap {
"error" : ErrorEvent ;
}
interface AbstractWorker {
onerror : ( ( this : AbstractWorker , ev : ErrorEvent ) = > any ) | null ;
addEventListener < K extends keyof AbstractWorkerEventMap > ( type : K , listener : ( this : AbstractWorker , ev : AbstractWorkerEventMap [ K ] ) = > any , options? : boolean | AddEventListenerOptions ) : void ;
addEventListener ( type : string , listener : EventListenerOrEventListenerObject , options? : boolean | AddEventListenerOptions ) : void ;
removeEventListener < K extends keyof AbstractWorkerEventMap > ( type : K , listener : ( this : AbstractWorker , ev : AbstractWorkerEventMap [ K ] ) = > any , options? : boolean | EventListenerOptions ) : void ;
removeEventListener ( type : string , listener : EventListenerOrEventListenerObject , options? : boolean | EventListenerOptions ) : void ;
}
2018-06-11 05:05:12 +02:00
interface AesCfbParams extends Algorithm {
iv : Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer ;
2016-12-15 07:03:00 +01:00
}
2018-06-11 05:05:12 +02:00
interface AesCmacParams extends Algorithm {
length : number ;
}
2016-12-15 07:03:00 +01:00
2019-07-29 19:33:43 +02:00
interface AnimationFrameProvider {
cancelAnimationFrame ( handle : number ) : void ;
requestAnimationFrame ( callback : FrameRequestCallback ) : number ;
}
/** A file-like object of immutable, raw data. Blobs represent data that isn't necessarily in a JavaScript-native format. The File interface is based on Blob, inheriting blob functionality and expanding it to support files on the user's system. */
2016-12-15 07:03:00 +01:00
interface Blob {
readonly size : number ;
readonly type : string ;
slice ( start? : number , end? : number , contentType? : string ) : Blob ;
}
declare var Blob : {
prototype : Blob ;
2018-06-11 05:05:12 +02:00
new ( blobParts? : BlobPart [ ] , options? : BlobPropertyBag ) : Blob ;
2017-08-01 00:54:41 +02:00
} ;
2016-12-15 07:03:00 +01:00
2018-03-29 02:46:57 +02:00
interface Body {
2018-11-13 01:27:38 +01:00
readonly body : ReadableStream < Uint8Array > | null ;
2018-03-29 02:46:57 +02:00
readonly bodyUsed : boolean ;
arrayBuffer ( ) : Promise < ArrayBuffer > ;
blob ( ) : Promise < Blob > ;
formData ( ) : Promise < FormData > ;
json ( ) : Promise < any > ;
text ( ) : Promise < string > ;
}
2018-06-11 05:05:12 +02:00
interface BroadcastChannelEventMap {
"message" : MessageEvent ;
"messageerror" : MessageEvent ;
}
interface BroadcastChannel extends EventTarget {
/ * *
* Returns the channel name ( as passed to the constructor ) .
* /
readonly name : string ;
onmessage : ( ( this : BroadcastChannel , ev : MessageEvent ) = > any ) | null ;
onmessageerror : ( ( this : BroadcastChannel , ev : MessageEvent ) = > any ) | null ;
/ * *
* Closes the BroadcastChannel object , opening it up to garbage collection .
* /
close ( ) : void ;
/ * *
* Sends the given message to other BroadcastChannel objects set up for this channel . Messages can be structured objects , e . g . nested objects and arrays .
* /
postMessage ( message : any ) : void ;
addEventListener < K extends keyof BroadcastChannelEventMap > ( type : K , listener : ( this : BroadcastChannel , ev : BroadcastChannelEventMap [ K ] ) = > any , options? : boolean | AddEventListenerOptions ) : void ;
addEventListener ( type : string , listener : EventListenerOrEventListenerObject , options? : boolean | AddEventListenerOptions ) : void ;
removeEventListener < K extends keyof BroadcastChannelEventMap > ( type : K , listener : ( this : BroadcastChannel , ev : BroadcastChannelEventMap [ K ] ) = > any , options? : boolean | EventListenerOptions ) : void ;
removeEventListener ( type : string , listener : EventListenerOrEventListenerObject , options? : boolean | EventListenerOptions ) : void ;
}
declare var BroadcastChannel : {
prototype : BroadcastChannel ;
new ( name : string ) : BroadcastChannel ;
} ;
2019-07-29 19:33:43 +02:00
/** This Streams API interface provides a built-in byte length queuing strategy that can be used when constructing streams. */
2018-11-13 01:27:38 +01:00
interface ByteLengthQueuingStrategy extends QueuingStrategy < ArrayBufferView > {
highWaterMark : number ;
size ( chunk : ArrayBufferView ) : number ;
}
declare var ByteLengthQueuingStrategy : {
prototype : ByteLengthQueuingStrategy ;
new ( options : { highWaterMark : number } ) : ByteLengthQueuingStrategy ;
} ;
2019-07-29 19:33:43 +02:00
/** Provides a storage mechanism for Request / Response object pairs that are cached, for example as part of the ServiceWorker life cycle. Note that the Cache interface is exposed to windowed scopes as well as workers. You don't have to use it in conjunction with service workers, even though it is defined in the service worker spec. */
2017-02-15 23:44:31 +01:00
interface Cache {
2018-06-11 05:05:12 +02:00
add ( request : RequestInfo ) : Promise < void > ;
addAll ( requests : RequestInfo [ ] ) : Promise < void > ;
delete ( request : RequestInfo , options? : CacheQueryOptions ) : Promise < boolean > ;
keys ( request? : RequestInfo , options? : CacheQueryOptions ) : Promise < ReadonlyArray < Request > > ;
match ( request : RequestInfo , options? : CacheQueryOptions ) : Promise < Response | undefined > ;
matchAll ( request? : RequestInfo , options? : CacheQueryOptions ) : Promise < ReadonlyArray < Response > > ;
put ( request : RequestInfo , response : Response ) : Promise < void > ;
2017-02-15 23:44:31 +01:00
}
declare var Cache : {
prototype : Cache ;
new ( ) : Cache ;
2017-08-01 00:54:41 +02:00
} ;
2017-02-15 23:44:31 +01:00
2019-07-29 19:33:43 +02:00
/** The storage for Cache objects. */
2017-02-15 23:44:31 +01:00
interface CacheStorage {
delete ( cacheName : string ) : Promise < boolean > ;
has ( cacheName : string ) : Promise < boolean > ;
2017-09-26 22:51:27 +02:00
keys ( ) : Promise < string [ ] > ;
2018-06-11 05:05:12 +02:00
match ( request : RequestInfo , options? : CacheQueryOptions ) : Promise < Response | undefined > ;
2017-02-15 23:44:31 +01:00
open ( cacheName : string ) : Promise < Cache > ;
}
declare var CacheStorage : {
prototype : CacheStorage ;
new ( ) : CacheStorage ;
2017-08-01 00:54:41 +02:00
} ;
2017-02-15 23:44:31 +01:00
2019-07-29 19:33:43 +02:00
interface CanvasCompositing {
globalAlpha : number ;
globalCompositeOperation : string ;
}
interface CanvasDrawImage {
drawImage ( image : CanvasImageSource , dx : number , dy : number ) : void ;
drawImage ( image : CanvasImageSource , dx : number , dy : number , dw : number , dh : number ) : void ;
drawImage ( image : CanvasImageSource , sx : number , sy : number , sw : number , sh : number , dx : number , dy : number , dw : number , dh : number ) : void ;
}
interface CanvasDrawPath {
beginPath ( ) : void ;
clip ( fillRule? : CanvasFillRule ) : void ;
clip ( path : Path2D , fillRule? : CanvasFillRule ) : void ;
fill ( fillRule? : CanvasFillRule ) : void ;
fill ( path : Path2D , fillRule? : CanvasFillRule ) : void ;
isPointInPath ( x : number , y : number , fillRule? : CanvasFillRule ) : boolean ;
isPointInPath ( path : Path2D , x : number , y : number , fillRule? : CanvasFillRule ) : boolean ;
isPointInStroke ( x : number , y : number ) : boolean ;
isPointInStroke ( path : Path2D , x : number , y : number ) : boolean ;
stroke ( ) : void ;
stroke ( path : Path2D ) : void ;
}
interface CanvasFillStrokeStyles {
fillStyle : string | CanvasGradient | CanvasPattern ;
strokeStyle : string | CanvasGradient | CanvasPattern ;
createLinearGradient ( x0 : number , y0 : number , x1 : number , y1 : number ) : CanvasGradient ;
createPattern ( image : CanvasImageSource , repetition : string ) : CanvasPattern | null ;
createRadialGradient ( x0 : number , y0 : number , r0 : number , x1 : number , y1 : number , r1 : number ) : CanvasGradient ;
}
interface CanvasFilters {
filter : string ;
}
/** An opaque object describing a gradient. It is returned by the methods CanvasRenderingContext2D.createLinearGradient() or CanvasRenderingContext2D.createRadialGradient(). */
2018-08-17 18:13:43 +02:00
interface CanvasGradient {
/ * *
2019-07-29 19:33:43 +02:00
* Adds a color stop with the given color to the gradient at the given offset . 0.0 is the offset at one end of the gradient , 1.0 is the offset at the other end .
*
* Throws an "IndexSizeError" DOMException if the offset is out of range . Throws a "SyntaxError" DOMException if the color cannot be parsed .
2018-08-17 18:13:43 +02:00
* /
addColorStop ( offset : number , color : string ) : void ;
}
declare var CanvasGradient : {
prototype : CanvasGradient ;
new ( ) : CanvasGradient ;
} ;
2019-07-29 19:33:43 +02:00
interface CanvasImageData {
createImageData ( sw : number , sh : number ) : ImageData ;
createImageData ( imagedata : ImageData ) : ImageData ;
getImageData ( sx : number , sy : number , sw : number , sh : number ) : ImageData ;
putImageData ( imagedata : ImageData , dx : number , dy : number ) : void ;
putImageData ( imagedata : ImageData , dx : number , dy : number , dirtyX : number , dirtyY : number , dirtyWidth : number , dirtyHeight : number ) : void ;
}
interface CanvasImageSmoothing {
imageSmoothingEnabled : boolean ;
imageSmoothingQuality : ImageSmoothingQuality ;
}
2018-08-17 18:13:43 +02:00
interface CanvasPath {
arc ( x : number , y : number , radius : number , startAngle : number , endAngle : number , anticlockwise? : boolean ) : void ;
arcTo ( x1 : number , y1 : number , x2 : number , y2 : number , radius : number ) : void ;
bezierCurveTo ( cp1x : number , cp1y : number , cp2x : number , cp2y : number , x : number , y : number ) : void ;
closePath ( ) : void ;
ellipse ( x : number , y : number , radiusX : number , radiusY : number , rotation : number , startAngle : number , endAngle : number , anticlockwise? : boolean ) : void ;
lineTo ( x : number , y : number ) : void ;
moveTo ( x : number , y : number ) : void ;
quadraticCurveTo ( cpx : number , cpy : number , x : number , y : number ) : void ;
rect ( x : number , y : number , w : number , h : number ) : void ;
}
2019-07-29 19:33:43 +02:00
interface CanvasPathDrawingStyles {
lineCap : CanvasLineCap ;
lineDashOffset : number ;
lineJoin : CanvasLineJoin ;
lineWidth : number ;
miterLimit : number ;
getLineDash ( ) : number [ ] ;
setLineDash ( segments : number [ ] ) : void ;
}
/** An opaque object describing a pattern, based on an image, a canvas, or a video, created by the CanvasRenderingContext2D.createPattern() method. */
2018-08-17 18:13:43 +02:00
interface CanvasPattern {
/ * *
2019-07-29 19:33:43 +02:00
* Sets the transformation matrix that will be used when rendering the pattern during a fill or stroke painting operation .
2018-08-17 18:13:43 +02:00
* /
setTransform ( transform? : DOMMatrix2DInit ) : void ;
}
declare var CanvasPattern : {
prototype : CanvasPattern ;
new ( ) : CanvasPattern ;
} ;
2019-07-29 19:33:43 +02:00
interface CanvasRect {
clearRect ( x : number , y : number , w : number , h : number ) : void ;
fillRect ( x : number , y : number , w : number , h : number ) : void ;
strokeRect ( x : number , y : number , w : number , h : number ) : void ;
}
interface CanvasShadowStyles {
shadowBlur : number ;
shadowColor : string ;
shadowOffsetX : number ;
shadowOffsetY : number ;
}
interface CanvasState {
restore ( ) : void ;
save ( ) : void ;
}
interface CanvasText {
fillText ( text : string , x : number , y : number , maxWidth? : number ) : void ;
measureText ( text : string ) : TextMetrics ;
strokeText ( text : string , x : number , y : number , maxWidth? : number ) : void ;
}
interface CanvasTextDrawingStyles {
direction : CanvasDirection ;
font : string ;
textAlign : CanvasTextAlign ;
textBaseline : CanvasTextBaseline ;
}
interface CanvasTransform {
getTransform ( ) : DOMMatrix ;
resetTransform ( ) : void ;
rotate ( angle : number ) : void ;
scale ( x : number , y : number ) : void ;
setTransform ( a : number , b : number , c : number , d : number , e : number , f : number ) : void ;
setTransform ( transform? : DOMMatrix2DInit ) : void ;
transform ( a : number , b : number , c : number , d : number , e : number , f : number ) : void ;
translate ( x : number , y : number ) : void ;
}
2019-02-28 23:35:03 +01:00
/** The Client interface represents an executable context such as a Worker, or a SharedWorker. Window clients are represented by the more-specific WindowClient. You can get Client/WindowClient objects from methods such as Clients.matchAll() and Clients.get(). */
2018-03-29 02:46:57 +02:00
interface Client {
2019-07-29 19:33:43 +02:00
readonly frameType : FrameType ;
2018-03-29 02:46:57 +02:00
readonly id : string ;
readonly type : ClientTypes ;
readonly url : string ;
2018-08-17 18:13:43 +02:00
postMessage ( message : any , transfer? : Transferable [ ] ) : void ;
2018-03-29 02:46:57 +02:00
}
declare var Client : {
prototype : Client ;
new ( ) : Client ;
} ;
2019-07-29 19:33:43 +02:00
/** Provides access to Client objects. Access it via self.clients within a service worker. */
2018-03-29 02:46:57 +02:00
interface Clients {
claim ( ) : Promise < void > ;
get ( id : string ) : Promise < any > ;
2018-06-11 05:05:12 +02:00
matchAll ( options? : ClientQueryOptions ) : Promise < ReadonlyArray < Client > > ;
2018-03-29 02:46:57 +02:00
openWindow ( url : string ) : Promise < WindowClient | null > ;
}
declare var Clients : {
prototype : Clients ;
new ( ) : Clients ;
} ;
2019-02-28 23:35:03 +01:00
/** A CloseEvent is sent to clients using WebSockets when the connection is closed. This is delivered to the listener indicated by the WebSocket object's onclose attribute. */
2016-12-15 07:03:00 +01:00
interface CloseEvent extends Event {
readonly code : number ;
readonly reason : string ;
readonly wasClean : boolean ;
2018-03-29 02:46:57 +02:00
/** @deprecated */
2016-12-15 07:03:00 +01:00
initCloseEvent ( typeArg : string , canBubbleArg : boolean , cancelableArg : boolean , wasCleanArg : boolean , codeArg : number , reasonArg : string ) : void ;
}
declare var CloseEvent : {
prototype : CloseEvent ;
2018-03-29 02:46:57 +02:00
new ( type : string , eventInitDict? : CloseEventInit ) : CloseEvent ;
2017-08-01 00:54:41 +02:00
} ;
2016-12-15 07:03:00 +01:00
2018-06-11 05:05:12 +02:00
interface ConcatParams extends Algorithm {
algorithmId : Uint8Array ;
hash? : string | Algorithm ;
partyUInfo : Uint8Array ;
partyVInfo : Uint8Array ;
privateInfo? : Uint8Array ;
publicInfo? : Uint8Array ;
}
2019-07-29 19:33:43 +02:00
/** Provides access to the browser's debugging console (e.g. the Web Console in Firefox). The specifics of how it works varies from browser to browser, but there is a de facto set of features that are typically provided. */
2016-12-15 07:03:00 +01:00
interface Console {
2018-03-29 02:46:57 +02:00
memory : any ;
assert ( condition? : boolean , message? : string , . . . data : any [ ] ) : void ;
2016-12-15 07:03:00 +01:00
clear ( ) : void ;
2018-03-29 02:46:57 +02:00
count ( label? : string ) : void ;
2017-02-15 23:44:31 +01:00
debug ( message? : any , . . . optionalParams : any [ ] ) : void ;
2016-12-15 07:03:00 +01:00
dir ( value? : any , . . . optionalParams : any [ ] ) : void ;
dirxml ( value : any ) : void ;
error ( message? : any , . . . optionalParams : any [ ] ) : void ;
exception ( message? : string , . . . optionalParams : any [ ] ) : void ;
2017-08-01 00:54:41 +02:00
group ( groupTitle? : string , . . . optionalParams : any [ ] ) : void ;
groupCollapsed ( groupTitle? : string , . . . optionalParams : any [ ] ) : void ;
2016-12-15 07:03:00 +01:00
groupEnd ( ) : void ;
info ( message? : any , . . . optionalParams : any [ ] ) : void ;
log ( message? : any , . . . optionalParams : any [ ] ) : void ;
2018-03-29 02:46:57 +02:00
markTimeline ( label? : string ) : void ;
2016-12-15 07:03:00 +01:00
profile ( reportName? : string ) : void ;
2018-08-17 18:13:43 +02:00
profileEnd ( reportName? : string ) : void ;
2018-03-29 02:46:57 +02:00
table ( . . . tabularData : any [ ] ) : void ;
time ( label? : string ) : void ;
timeEnd ( label? : string ) : void ;
timeStamp ( label? : string ) : void ;
timeline ( label? : string ) : void ;
timelineEnd ( label? : string ) : void ;
2016-12-15 07:03:00 +01:00
trace ( message? : any , . . . optionalParams : any [ ] ) : void ;
warn ( message? : any , . . . optionalParams : any [ ] ) : void ;
}
declare var Console : {
prototype : Console ;
new ( ) : Console ;
2017-08-01 00:54:41 +02:00
} ;
2016-12-15 07:03:00 +01:00
2019-07-29 19:33:43 +02:00
/** This Streams API interface provides a built-in byte length queuing strategy that can be used when constructing streams. */
2018-11-13 01:27:38 +01:00
interface CountQueuingStrategy extends QueuingStrategy {
highWaterMark : number ;
size ( chunk : any ) : 1 ;
}
declare var CountQueuingStrategy : {
prototype : CountQueuingStrategy ;
new ( options : { highWaterMark : number } ) : CountQueuingStrategy ;
} ;
2019-07-29 19:33:43 +02:00
/** Basic cryptography features available in the current context. It allows access to a cryptographically strong random number generator and to cryptographic primitives. */
2018-08-17 18:13:43 +02:00
interface Crypto {
readonly subtle : SubtleCrypto ;
getRandomValues < T extends Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | null > ( array : T ) : T ;
}
declare var Crypto : {
prototype : Crypto ;
new ( ) : Crypto ;
} ;
2019-07-29 19:33:43 +02:00
/** The CryptoKey dictionary of the Web Crypto API represents a cryptographic key. */
2016-12-15 07:03:00 +01:00
interface CryptoKey {
readonly algorithm : KeyAlgorithm ;
readonly extractable : boolean ;
2018-08-17 18:13:43 +02:00
readonly type : KeyType ;
readonly usages : KeyUsage [ ] ;
2016-12-15 07:03:00 +01:00
}
declare var CryptoKey : {
prototype : CryptoKey ;
new ( ) : CryptoKey ;
2017-08-01 00:54:41 +02:00
} ;
2016-12-15 07:03:00 +01:00
2018-08-17 18:13:43 +02:00
interface CustomEvent < T = any > extends Event {
/ * *
2019-07-29 19:33:43 +02:00
* Returns any custom data event was created with . Typically used for synthetic events .
2018-08-17 18:13:43 +02:00
* /
readonly detail : T ;
initCustomEvent ( typeArg : string , canBubbleArg : boolean , cancelableArg : boolean , detailArg : T ) : void ;
}
declare var CustomEvent : {
prototype : CustomEvent ;
new < T > ( typeArg : string , eventInitDict? : CustomEventInit < T > ) : CustomEvent < T > ;
} ;
2019-07-29 19:33:43 +02:00
/** An abnormal event (called an exception) which occurs as a result of calling a method or accessing a property of a web API. */
2016-12-15 07:03:00 +01:00
interface DOMException {
readonly code : number ;
readonly message : string ;
readonly name : string ;
readonly ABORT_ERR : number ;
readonly DATA_CLONE_ERR : number ;
readonly DOMSTRING_SIZE_ERR : number ;
readonly HIERARCHY_REQUEST_ERR : number ;
readonly INDEX_SIZE_ERR : number ;
readonly INUSE_ATTRIBUTE_ERR : number ;
readonly INVALID_ACCESS_ERR : number ;
readonly INVALID_CHARACTER_ERR : number ;
readonly INVALID_MODIFICATION_ERR : number ;
readonly INVALID_NODE_TYPE_ERR : number ;
readonly INVALID_STATE_ERR : number ;
readonly NAMESPACE_ERR : number ;
readonly NETWORK_ERR : number ;
2017-08-01 00:54:41 +02:00
readonly NOT_FOUND_ERR : number ;
readonly NOT_SUPPORTED_ERR : number ;
2018-03-29 02:46:57 +02:00
readonly NO_DATA_ALLOWED_ERR : number ;
readonly NO_MODIFICATION_ALLOWED_ERR : number ;
2016-12-15 07:03:00 +01:00
readonly QUOTA_EXCEEDED_ERR : number ;
readonly SECURITY_ERR : number ;
readonly SYNTAX_ERR : number ;
readonly TIMEOUT_ERR : number ;
readonly TYPE_MISMATCH_ERR : number ;
readonly URL_MISMATCH_ERR : number ;
readonly VALIDATION_ERR : number ;
readonly WRONG_DOCUMENT_ERR : number ;
}
declare var DOMException : {
prototype : DOMException ;
2017-09-26 22:51:27 +02:00
new ( message? : string , name? : string ) : DOMException ;
2016-12-15 07:03:00 +01:00
readonly ABORT_ERR : number ;
readonly DATA_CLONE_ERR : number ;
readonly DOMSTRING_SIZE_ERR : number ;
readonly HIERARCHY_REQUEST_ERR : number ;
readonly INDEX_SIZE_ERR : number ;
readonly INUSE_ATTRIBUTE_ERR : number ;
readonly INVALID_ACCESS_ERR : number ;
readonly INVALID_CHARACTER_ERR : number ;
readonly INVALID_MODIFICATION_ERR : number ;
readonly INVALID_NODE_TYPE_ERR : number ;
readonly INVALID_STATE_ERR : number ;
readonly NAMESPACE_ERR : number ;
readonly NETWORK_ERR : number ;
2017-08-01 00:54:41 +02:00
readonly NOT_FOUND_ERR : number ;
readonly NOT_SUPPORTED_ERR : number ;
2018-03-29 02:46:57 +02:00
readonly NO_DATA_ALLOWED_ERR : number ;
readonly NO_MODIFICATION_ALLOWED_ERR : number ;
2016-12-15 07:03:00 +01:00
readonly QUOTA_EXCEEDED_ERR : number ;
readonly SECURITY_ERR : number ;
readonly SYNTAX_ERR : number ;
readonly TIMEOUT_ERR : number ;
readonly TYPE_MISMATCH_ERR : number ;
readonly URL_MISMATCH_ERR : number ;
readonly VALIDATION_ERR : number ;
readonly WRONG_DOCUMENT_ERR : number ;
2017-08-01 00:54:41 +02:00
} ;
2016-12-15 07:03:00 +01:00
2018-06-11 05:05:12 +02:00
interface DOMMatrix extends DOMMatrixReadOnly {
a : number ;
b : number ;
c : number ;
d : number ;
e : number ;
f : number ;
m11 : number ;
m12 : number ;
m13 : number ;
m14 : number ;
m21 : number ;
m22 : number ;
m23 : number ;
m24 : number ;
m31 : number ;
m32 : number ;
m33 : number ;
m34 : number ;
m41 : number ;
m42 : number ;
m43 : number ;
m44 : number ;
invertSelf ( ) : DOMMatrix ;
multiplySelf ( other? : DOMMatrixInit ) : DOMMatrix ;
preMultiplySelf ( other? : DOMMatrixInit ) : DOMMatrix ;
rotateAxisAngleSelf ( x? : number , y? : number , z? : number , angle? : number ) : DOMMatrix ;
rotateFromVectorSelf ( x? : number , y? : number ) : DOMMatrix ;
rotateSelf ( rotX? : number , rotY? : number , rotZ? : number ) : DOMMatrix ;
scale3dSelf ( scale? : number , originX? : number , originY? : number , originZ? : number ) : DOMMatrix ;
scaleSelf ( scaleX? : number , scaleY? : number , scaleZ? : number , originX? : number , originY? : number , originZ? : number ) : DOMMatrix ;
skewXSelf ( sx? : number ) : DOMMatrix ;
skewYSelf ( sy? : number ) : DOMMatrix ;
translateSelf ( tx? : number , ty? : number , tz? : number ) : DOMMatrix ;
}
declare var DOMMatrix : {
prototype : DOMMatrix ;
new ( init? : string | number [ ] ) : DOMMatrix ;
fromFloat32Array ( array32 : Float32Array ) : DOMMatrix ;
fromFloat64Array ( array64 : Float64Array ) : DOMMatrix ;
fromMatrix ( other? : DOMMatrixInit ) : DOMMatrix ;
} ;
interface DOMMatrixReadOnly {
readonly a : number ;
readonly b : number ;
readonly c : number ;
readonly d : number ;
readonly e : number ;
readonly f : number ;
readonly is2D : boolean ;
readonly isIdentity : boolean ;
readonly m11 : number ;
readonly m12 : number ;
readonly m13 : number ;
readonly m14 : number ;
readonly m21 : number ;
readonly m22 : number ;
readonly m23 : number ;
readonly m24 : number ;
readonly m31 : number ;
readonly m32 : number ;
readonly m33 : number ;
readonly m34 : number ;
readonly m41 : number ;
readonly m42 : number ;
readonly m43 : number ;
readonly m44 : number ;
flipX ( ) : DOMMatrix ;
flipY ( ) : DOMMatrix ;
inverse ( ) : DOMMatrix ;
multiply ( other? : DOMMatrixInit ) : DOMMatrix ;
rotate ( rotX? : number , rotY? : number , rotZ? : number ) : DOMMatrix ;
rotateAxisAngle ( x? : number , y? : number , z? : number , angle? : number ) : DOMMatrix ;
rotateFromVector ( x? : number , y? : number ) : DOMMatrix ;
scale ( scaleX? : number , scaleY? : number , scaleZ? : number , originX? : number , originY? : number , originZ? : number ) : DOMMatrix ;
scale3d ( scale? : number , originX? : number , originY? : number , originZ? : number ) : DOMMatrix ;
2019-02-28 23:35:03 +01:00
/** @deprecated */
scaleNonUniform ( scaleX? : number , scaleY? : number ) : DOMMatrix ;
2018-06-11 05:05:12 +02:00
skewX ( sx? : number ) : DOMMatrix ;
skewY ( sy? : number ) : DOMMatrix ;
toFloat32Array ( ) : Float32Array ;
toFloat64Array ( ) : Float64Array ;
toJSON ( ) : any ;
transformPoint ( point? : DOMPointInit ) : DOMPoint ;
translate ( tx? : number , ty? : number , tz? : number ) : DOMMatrix ;
}
declare var DOMMatrixReadOnly : {
prototype : DOMMatrixReadOnly ;
new ( init? : string | number [ ] ) : DOMMatrixReadOnly ;
fromFloat32Array ( array32 : Float32Array ) : DOMMatrixReadOnly ;
fromFloat64Array ( array64 : Float64Array ) : DOMMatrixReadOnly ;
fromMatrix ( other? : DOMMatrixInit ) : DOMMatrixReadOnly ;
} ;
interface DOMPoint extends DOMPointReadOnly {
w : number ;
x : number ;
y : number ;
z : number ;
}
declare var DOMPoint : {
prototype : DOMPoint ;
new ( x? : number , y? : number , z? : number , w? : number ) : DOMPoint ;
fromPoint ( other? : DOMPointInit ) : DOMPoint ;
} ;
interface DOMPointReadOnly {
readonly w : number ;
readonly x : number ;
readonly y : number ;
readonly z : number ;
matrixTransform ( matrix? : DOMMatrixInit ) : DOMPoint ;
toJSON ( ) : any ;
}
declare var DOMPointReadOnly : {
prototype : DOMPointReadOnly ;
new ( x? : number , y? : number , z? : number , w? : number ) : DOMPointReadOnly ;
fromPoint ( other? : DOMPointInit ) : DOMPointReadOnly ;
} ;
interface DOMQuad {
readonly p1 : DOMPoint ;
readonly p2 : DOMPoint ;
readonly p3 : DOMPoint ;
readonly p4 : DOMPoint ;
getBounds ( ) : DOMRect ;
toJSON ( ) : any ;
}
declare var DOMQuad : {
prototype : DOMQuad ;
new ( p1? : DOMPointInit , p2? : DOMPointInit , p3? : DOMPointInit , p4? : DOMPointInit ) : DOMQuad ;
fromQuad ( other? : DOMQuadInit ) : DOMQuad ;
fromRect ( other? : DOMRectInit ) : DOMQuad ;
} ;
interface DOMRect extends DOMRectReadOnly {
height : number ;
width : number ;
x : number ;
y : number ;
}
declare var DOMRect : {
prototype : DOMRect ;
new ( x? : number , y? : number , width? : number , height? : number ) : DOMRect ;
fromRect ( other? : DOMRectInit ) : DOMRect ;
} ;
interface DOMRectReadOnly {
readonly bottom : number ;
readonly height : number ;
readonly left : number ;
readonly right : number ;
readonly top : number ;
readonly width : number ;
readonly x : number ;
readonly y : number ;
toJSON ( ) : any ;
}
declare var DOMRectReadOnly : {
prototype : DOMRectReadOnly ;
new ( x? : number , y? : number , width? : number , height? : number ) : DOMRectReadOnly ;
fromRect ( other? : DOMRectInit ) : DOMRectReadOnly ;
} ;
2019-02-28 23:35:03 +01:00
/** A type returned by some APIs which contains a list of DOMString (strings). */
2016-12-15 07:03:00 +01:00
interface DOMStringList {
2018-06-11 05:05:12 +02:00
/ * *
* Returns the number of strings in strings .
* /
2016-12-15 07:03:00 +01:00
readonly length : number ;
2018-06-11 05:05:12 +02:00
/ * *
2019-07-29 19:33:43 +02:00
* Returns true if strings contains string , and false otherwise .
2018-06-11 05:05:12 +02:00
* /
contains ( string : string ) : boolean ;
/ * *
* Returns the string with index index from strings .
* /
2016-12-15 07:03:00 +01:00
item ( index : number ) : string | null ;
[ index : number ] : string ;
}
declare var DOMStringList : {
prototype : DOMStringList ;
new ( ) : DOMStringList ;
2017-08-01 00:54:41 +02:00
} ;
2016-12-15 07:03:00 +01:00
2018-03-29 02:46:57 +02:00
interface DedicatedWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {
"message" : MessageEvent ;
}
2019-07-29 19:33:43 +02:00
/** (the Worker global scope) is accessible through the self keyword. Some additional global functions, namespaces objects, and constructors, not typically associated with the worker global scope, but available on it, are listed in the JavaScript Reference. See also: Functions available to workers. */
interface DedicatedWorkerGlobalScope extends WorkerGlobalScope , AnimationFrameProvider {
2018-03-29 02:46:57 +02:00
onmessage : ( ( this : DedicatedWorkerGlobalScope , ev : MessageEvent ) = > any ) | null ;
close ( ) : void ;
2019-07-29 19:33:43 +02:00
postMessage ( message : any , transfer : Transferable [ ] ) : void ;
postMessage ( message : any , options? : PostMessageOptions ) : void ;
2018-03-29 02:46:57 +02:00
addEventListener < K extends keyof DedicatedWorkerGlobalScopeEventMap > ( type : K , listener : ( this : DedicatedWorkerGlobalScope , ev : DedicatedWorkerGlobalScopeEventMap [ K ] ) = > any , options? : boolean | AddEventListenerOptions ) : void ;
addEventListener ( type : string , listener : EventListenerOrEventListenerObject , options? : boolean | AddEventListenerOptions ) : void ;
removeEventListener < K extends keyof DedicatedWorkerGlobalScopeEventMap > ( type : K , listener : ( this : DedicatedWorkerGlobalScope , ev : DedicatedWorkerGlobalScopeEventMap [ K ] ) = > any , options? : boolean | EventListenerOptions ) : void ;
removeEventListener ( type : string , listener : EventListenerOrEventListenerObject , options? : boolean | EventListenerOptions ) : void ;
}
declare var DedicatedWorkerGlobalScope : {
prototype : DedicatedWorkerGlobalScope ;
new ( ) : DedicatedWorkerGlobalScope ;
} ;
2018-06-11 05:05:12 +02:00
interface DhImportKeyParams extends Algorithm {
generator : Uint8Array ;
prime : Uint8Array ;
}
interface DhKeyAlgorithm extends KeyAlgorithm {
generator : Uint8Array ;
prime : Uint8Array ;
}
interface DhKeyDeriveParams extends Algorithm {
public : CryptoKey ;
}
interface DhKeyGenParams extends Algorithm {
generator : Uint8Array ;
prime : Uint8Array ;
}
2018-11-13 01:27:38 +01:00
interface EXT_blend_minmax {
readonly MAX_EXT : GLenum ;
readonly MIN_EXT : GLenum ;
}
2019-02-28 23:35:03 +01:00
/** The EXT_frag_depth extension is part of the WebGL API and enables to set a depth value of a fragment from within the fragment shader. */
2018-11-13 01:27:38 +01:00
interface EXT_frag_depth {
}
interface EXT_sRGB {
readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT : GLenum ;
readonly SRGB8_ALPHA8_EXT : GLenum ;
readonly SRGB_ALPHA_EXT : GLenum ;
readonly SRGB_EXT : GLenum ;
}
interface EXT_shader_texture_lod {
}
2019-02-28 23:35:03 +01:00
/** The EXT_texture_filter_anisotropic extension is part of the WebGL API and exposes two constants for anisotropic filtering (AF). */
2018-11-13 01:27:38 +01:00
interface EXT_texture_filter_anisotropic {
readonly MAX_TEXTURE_MAX_ANISOTROPY_EXT : GLenum ;
readonly TEXTURE_MAX_ANISOTROPY_EXT : GLenum ;
}
2019-07-29 19:33:43 +02:00
/** Events providing information related to errors in scripts or in files. */
2016-12-15 07:03:00 +01:00
interface ErrorEvent extends Event {
readonly colno : number ;
readonly error : any ;
readonly filename : string ;
readonly lineno : number ;
readonly message : string ;
}
declare var ErrorEvent : {
prototype : ErrorEvent ;
2018-08-17 18:13:43 +02:00
new ( type : string , eventInitDict? : ErrorEventInit ) : ErrorEvent ;
2017-08-01 00:54:41 +02:00
} ;
2016-12-15 07:03:00 +01:00
2019-07-29 19:33:43 +02:00
/** An event which takes place in the DOM. */
2016-12-15 07:03:00 +01:00
interface Event {
2018-08-17 18:13:43 +02:00
/ * *
* Returns true or false depending on how event was initialized . True if event goes through its target ' s ancestors in reverse tree order , and false otherwise .
* /
2016-12-15 07:03:00 +01:00
readonly bubbles : boolean ;
2017-08-01 00:54:41 +02:00
cancelBubble : boolean ;
2019-07-29 19:33:43 +02:00
/ * *
* Returns true or false depending on how event was initialized . Its return value does not always carry meaning , but true can indicate that part of the operation during which event was dispatched , can be canceled by invoking the preventDefault ( ) method .
* /
2018-03-29 02:46:57 +02:00
readonly cancelable : boolean ;
2018-08-17 18:13:43 +02:00
/ * *
* Returns true or false depending on how event was initialized . True if event invokes listeners past a ShadowRoot node that is the root of its target , and false otherwise .
* /
2018-06-11 05:05:12 +02:00
readonly composed : boolean ;
2018-08-17 18:13:43 +02:00
/ * *
2019-07-29 19:33:43 +02:00
* Returns the object whose event listener ' s callback is currently being invoked .
2018-08-17 18:13:43 +02:00
* /
2018-03-29 02:46:57 +02:00
readonly currentTarget : EventTarget | null ;
2019-07-29 19:33:43 +02:00
/ * *
* Returns true if preventDefault ( ) was invoked successfully to indicate cancelation , and false otherwise .
* /
2016-12-15 07:03:00 +01:00
readonly defaultPrevented : boolean ;
2019-07-29 19:33:43 +02:00
/ * *
* Returns the event ' s phase , which is one of NONE , CAPTURING_PHASE , AT_TARGET , and BUBBLING_PHASE .
* /
2016-12-15 07:03:00 +01:00
readonly eventPhase : number ;
2018-08-17 18:13:43 +02:00
/ * *
2019-07-29 19:33:43 +02:00
* Returns true if event was dispatched by the user agent , and false otherwise .
2018-08-17 18:13:43 +02:00
* /
2016-12-15 07:03:00 +01:00
readonly isTrusted : boolean ;
returnValue : boolean ;
2019-02-28 23:35:03 +01:00
/** @deprecated */
readonly srcElement : EventTarget | null ;
2018-08-17 18:13:43 +02:00
/ * *
* Returns the object to which event is dispatched ( its target ) .
* /
2018-03-29 02:46:57 +02:00
readonly target : EventTarget | null ;
2018-08-17 18:13:43 +02:00
/ * *
2019-07-29 19:33:43 +02:00
* Returns the event ' s timestamp as the number of milliseconds measured relative to the time origin .
2018-08-17 18:13:43 +02:00
* /
2016-12-15 07:03:00 +01:00
readonly timeStamp : number ;
2018-08-17 18:13:43 +02:00
/ * *
2019-07-29 19:33:43 +02:00
* Returns the type of event , e . g . "click" , "hashchange" , or "submit" .
2018-08-17 18:13:43 +02:00
* /
2016-12-15 07:03:00 +01:00
readonly type : string ;
2019-07-29 19:33:43 +02:00
/ * *
* Returns the invocation target objects of event 's path (objects on which listeners will be invoked), except for any nodes in shadow trees of which the shadow root' s mode is "closed" that are not reachable from event ' s currentTarget .
* /
2018-08-17 18:13:43 +02:00
composedPath ( ) : EventTarget [ ] ;
2018-03-29 02:46:57 +02:00
initEvent ( type : string , bubbles? : boolean , cancelable? : boolean ) : void ;
2019-07-29 19:33:43 +02:00
/ * *
* If invoked when the cancelable attribute value is true , and while executing a listener for the event with passive set to false , signals to the operation that caused event to be dispatched that it needs to be canceled .
* /
2016-12-15 07:03:00 +01:00
preventDefault ( ) : void ;
2018-08-17 18:13:43 +02:00
/ * *
2019-07-29 19:33:43 +02:00
* Invoking this method prevents event from reaching any registered event listeners after the current one finishes running and , when dispatched in a tree , also prevents event from reaching any other objects .
2018-08-17 18:13:43 +02:00
* /
2016-12-15 07:03:00 +01:00
stopImmediatePropagation ( ) : void ;
2018-08-17 18:13:43 +02:00
/ * *
* When dispatched in a tree , invoking this method prevents event from reaching any objects other than the current object .
* /
2016-12-15 07:03:00 +01:00
stopPropagation ( ) : void ;
readonly AT_TARGET : number ;
readonly BUBBLING_PHASE : number ;
readonly CAPTURING_PHASE : number ;
2018-03-29 02:46:57 +02:00
readonly NONE : number ;
2016-12-15 07:03:00 +01:00
}
declare var Event : {
prototype : Event ;
2018-08-17 18:13:43 +02:00
new ( type : string , eventInitDict? : EventInit ) : Event ;
2016-12-15 07:03:00 +01:00
readonly AT_TARGET : number ;
readonly BUBBLING_PHASE : number ;
readonly CAPTURING_PHASE : number ;
2018-03-29 02:46:57 +02:00
readonly NONE : number ;
2017-08-01 00:54:41 +02:00
} ;
2016-12-15 07:03:00 +01:00
2018-03-29 02:46:57 +02:00
interface EventListenerObject {
handleEvent ( evt : Event ) : void ;
}
2019-02-28 23:35:03 +01:00
interface EventSourceEventMap {
"error" : Event ;
"message" : MessageEvent ;
"open" : Event ;
}
2018-06-11 05:05:12 +02:00
interface EventSource extends EventTarget {
2019-02-28 23:35:03 +01:00
onerror : ( ( this : EventSource , ev : Event ) = > any ) | null ;
onmessage : ( ( this : EventSource , ev : MessageEvent ) = > any ) | null ;
onopen : ( ( this : EventSource , ev : Event ) = > any ) | null ;
/ * *
2019-07-29 19:33:43 +02:00
* Returns the state of this EventSource object ' s connection . It can have the values described below .
2019-02-28 23:35:03 +01:00
* /
2018-06-11 05:05:12 +02:00
readonly readyState : number ;
2019-02-28 23:35:03 +01:00
/ * *
* Returns the URL providing the event stream .
* /
2018-06-11 05:05:12 +02:00
readonly url : string ;
2019-02-28 23:35:03 +01:00
/ * *
2019-07-29 19:33:43 +02:00
* Returns true if the credentials mode for connection requests to the URL providing the event stream is set to "include" , and false otherwise .
2019-02-28 23:35:03 +01:00
* /
2018-06-11 05:05:12 +02:00
readonly withCredentials : boolean ;
2019-07-29 19:33:43 +02:00
/ * *
* Aborts any instances of the fetch algorithm started for this EventSource object , and sets the readyState attribute to CLOSED .
* /
2018-06-11 05:05:12 +02:00
close ( ) : void ;
2019-02-28 23:35:03 +01:00
readonly CLOSED : number ;
readonly CONNECTING : number ;
readonly OPEN : number ;
addEventListener < K extends keyof EventSourceEventMap > ( type : K , listener : ( this : EventSource , ev : EventSourceEventMap [ K ] ) = > any , options? : boolean | AddEventListenerOptions ) : void ;
addEventListener ( type : string , listener : EventListenerOrEventListenerObject , options? : boolean | AddEventListenerOptions ) : void ;
removeEventListener < K extends keyof EventSourceEventMap > ( type : K , listener : ( this : EventSource , ev : EventSourceEventMap [ K ] ) = > any , options? : boolean | EventListenerOptions ) : void ;
removeEventListener ( type : string , listener : EventListenerOrEventListenerObject , options? : boolean | EventListenerOptions ) : void ;
2018-06-11 05:05:12 +02:00
}
declare var EventSource : {
prototype : EventSource ;
new ( url : string , eventSourceInitDict? : EventSourceInit ) : EventSource ;
2019-02-28 23:35:03 +01:00
readonly CLOSED : number ;
readonly CONNECTING : number ;
readonly OPEN : number ;
2018-06-11 05:05:12 +02:00
} ;
2019-07-29 19:33:43 +02:00
/** EventTarget is a DOM interface implemented by objects that can receive events and may have listeners for them. */
2016-12-15 07:03:00 +01:00
interface EventTarget {
2018-08-17 18:13:43 +02:00
/ * *
* Appends an event listener for events whose type attribute value is type . The callback argument sets the callback that will be invoked when the event is dispatched .
2019-07-29 19:33:43 +02:00
*
* The options argument sets listener - specific options . For compatibility this can be a boolean , in which case the method behaves exactly as if the value was specified as options ' s capture .
*
2018-08-17 18:13:43 +02:00
* When set to true , options 's capture prevents callback from being invoked when the event' s eventPhase attribute value is BUBBLING_PHASE . When false ( or not present ) , callback will not be invoked when event 's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event' s eventPhase attribute value is AT_TARGET .
2019-07-29 19:33:43 +02:00
*
2018-08-17 18:13:43 +02:00
* When set to true , options ' s passive indicates that the callback will not cancel the event by invoking preventDefault ( ) . This is used to enable performance optimizations described in § 2.8 Observing event listeners .
2019-07-29 19:33:43 +02:00
*
* When set to true , options ' s once indicates that the callback will only be invoked once after which the event listener will be removed .
*
2018-08-17 18:13:43 +02:00
* The event listener is appended to target ' s event listener list and is not appended if it has the same type , callback , and capture .
* /
2018-03-29 02:46:57 +02:00
addEventListener ( type : string , listener : EventListenerOrEventListenerObject | null , options? : boolean | AddEventListenerOptions ) : void ;
2018-08-17 18:13:43 +02:00
/ * *
2019-07-29 19:33:43 +02:00
* Dispatches a synthetic event event to target and returns true if either event ' s cancelable attribute value is false or its preventDefault ( ) method was not invoked , and false otherwise .
2018-08-17 18:13:43 +02:00
* /
dispatchEvent ( event : Event ) : boolean ;
/ * *
* Removes the event listener in target ' s event listener list with the same type , callback , and options .
* /
removeEventListener ( type : string , callback : EventListenerOrEventListenerObject | null , options? : EventListenerOptions | boolean ) : void ;
2016-12-15 07:03:00 +01:00
}
declare var EventTarget : {
prototype : EventTarget ;
new ( ) : EventTarget ;
2017-08-01 00:54:41 +02:00
} ;
2016-12-15 07:03:00 +01:00
2019-07-29 19:33:43 +02:00
/** Extends the lifetime of the install and activate events dispatched on the global scope as part of the service worker lifecycle. This ensures that any functional events (like FetchEvent) are not dispatched until it upgrades database schemas and deletes the outdated cache entries. */
2018-03-29 02:46:57 +02:00
interface ExtendableEvent extends Event {
2019-02-28 23:35:03 +01:00
waitUntil ( f : any ) : void ;
2018-03-29 02:46:57 +02:00
}
declare var ExtendableEvent : {
prototype : ExtendableEvent ;
new ( type : string , eventInitDict? : ExtendableEventInit ) : ExtendableEvent ;
} ;
2019-07-29 19:33:43 +02:00
/** This ServiceWorker API interface represents the event object of a message event fired on a service worker (when a channel message is received on the ServiceWorkerGlobalScope from another context) — extends the lifetime of such events. */
2018-03-29 02:46:57 +02:00
interface ExtendableMessageEvent extends ExtendableEvent {
readonly data : any ;
readonly lastEventId : string ;
readonly origin : string ;
2018-06-11 05:05:12 +02:00
readonly ports : ReadonlyArray < MessagePort > ;
2018-03-29 02:46:57 +02:00
readonly source : Client | ServiceWorker | MessagePort | null ;
}
declare var ExtendableMessageEvent : {
prototype : ExtendableMessageEvent ;
new ( type : string , eventInitDict? : ExtendableMessageEventInit ) : ExtendableMessageEvent ;
} ;
2019-02-28 23:35:03 +01:00
/** This is the event type for fetch events dispatched on the service worker global scope. It contains information about the fetch, including the request and how the receiver will treat the response. It provides the event.respondWith() method, which allows us to provide a response to this fetch. */
2018-03-29 02:46:57 +02:00
interface FetchEvent extends ExtendableEvent {
readonly clientId : string ;
2018-06-11 05:05:12 +02:00
readonly preloadResponse : Promise < any > ;
2019-07-29 19:33:43 +02:00
readonly replacesClientId : string ;
2018-03-29 02:46:57 +02:00
readonly request : Request ;
2018-06-11 05:05:12 +02:00
readonly resultingClientId : string ;
2019-02-28 23:35:03 +01:00
respondWith ( r : Response | Promise < Response > ) : void ;
2018-03-29 02:46:57 +02:00
}
declare var FetchEvent : {
prototype : FetchEvent ;
new ( type : string , eventInitDict : FetchEventInit ) : FetchEvent ;
} ;
2019-07-29 19:33:43 +02:00
/** Provides information about files and allows JavaScript in a web page to access their content. */
2016-12-15 07:03:00 +01:00
interface File extends Blob {
2018-03-29 02:46:57 +02:00
readonly lastModified : number ;
2016-12-15 07:03:00 +01:00
readonly name : string ;
}
declare var File : {
prototype : File ;
2018-06-11 05:05:12 +02:00
new ( fileBits : BlobPart [ ] , fileName : string , options? : FilePropertyBag ) : File ;
2017-08-01 00:54:41 +02:00
} ;
2016-12-15 07:03:00 +01:00
2019-02-28 23:35:03 +01:00
/** An object of this type is returned by the files property of the HTML <input> element; this lets you access the list of files selected with the <input type="file"> element. It's also used for a list of files dropped into web content when using the drag and drop API; see the DataTransfer object for details on this usage. */
2016-12-15 07:03:00 +01:00
interface FileList {
readonly length : number ;
2018-03-29 02:46:57 +02:00
item ( index : number ) : File | null ;
2016-12-15 07:03:00 +01:00
[ index : number ] : File ;
}
declare var FileList : {
prototype : FileList ;
new ( ) : FileList ;
2017-08-01 00:54:41 +02:00
} ;
2016-12-15 07:03:00 +01:00
2018-03-29 02:46:57 +02:00
interface FileReaderEventMap {
2019-07-29 19:33:43 +02:00
"abort" : ProgressEvent < FileReader > ;
"error" : ProgressEvent < FileReader > ;
"load" : ProgressEvent < FileReader > ;
"loadend" : ProgressEvent < FileReader > ;
"loadstart" : ProgressEvent < FileReader > ;
"progress" : ProgressEvent < FileReader > ;
2018-03-29 02:46:57 +02:00
}
2019-07-29 19:33:43 +02:00
/** Lets web applications asynchronously read the contents of files (or raw data buffers) stored on the user's computer, using File or Blob objects to specify the file or data to read. */
2018-03-29 02:46:57 +02:00
interface FileReader extends EventTarget {
readonly error : DOMException | null ;
2019-07-29 19:33:43 +02:00
onabort : ( ( this : FileReader , ev : ProgressEvent < FileReader > ) = > any ) | null ;
onerror : ( ( this : FileReader , ev : ProgressEvent < FileReader > ) = > any ) | null ;
onload : ( ( this : FileReader , ev : ProgressEvent < FileReader > ) = > any ) | null ;
onloadend : ( ( this : FileReader , ev : ProgressEvent < FileReader > ) = > any ) | null ;
onloadstart : ( ( this : FileReader , ev : ProgressEvent < FileReader > ) = > any ) | null ;
onprogress : ( ( this : FileReader , ev : ProgressEvent < FileReader > ) = > any ) | null ;
2018-03-29 02:46:57 +02:00
readonly readyState : number ;
2018-06-11 05:05:12 +02:00
readonly result : string | ArrayBuffer | null ;
2018-03-29 02:46:57 +02:00
abort ( ) : void ;
2016-12-15 07:03:00 +01:00
readAsArrayBuffer ( blob : Blob ) : void ;
readAsBinaryString ( blob : Blob ) : void ;
readAsDataURL ( blob : Blob ) : void ;
2018-11-13 01:27:38 +01:00
readAsText ( blob : Blob , encoding? : string ) : void ;
2018-03-29 02:46:57 +02:00
readonly DONE : number ;
readonly EMPTY : number ;
readonly LOADING : number ;
addEventListener < K extends keyof FileReaderEventMap > ( type : K , listener : ( this : FileReader , ev : FileReaderEventMap [ K ] ) = > any , options? : boolean | AddEventListenerOptions ) : void ;
2017-12-02 20:16:59 +01:00
addEventListener ( type : string , listener : EventListenerOrEventListenerObject , options? : boolean | AddEventListenerOptions ) : void ;
2018-03-29 02:46:57 +02:00
removeEventListener < K extends keyof FileReaderEventMap > ( type : K , listener : ( this : FileReader , ev : FileReaderEventMap [ K ] ) = > any , options? : boolean | EventListenerOptions ) : void ;
2017-12-02 20:16:59 +01:00
removeEventListener ( type : string , listener : EventListenerOrEventListenerObject , options? : boolean | EventListenerOptions ) : void ;
2016-12-15 07:03:00 +01:00
}
declare var FileReader : {
prototype : FileReader ;
new ( ) : FileReader ;
2018-03-29 02:46:57 +02:00
readonly DONE : number ;
readonly EMPTY : number ;
readonly LOADING : number ;
} ;
2019-07-29 19:33:43 +02:00
/** Allows to read File or Blob objects in a synchronous way. */
2018-03-29 02:46:57 +02:00
interface FileReaderSync {
2018-06-11 05:05:12 +02:00
readAsArrayBuffer ( blob : Blob ) : ArrayBuffer ;
readAsBinaryString ( blob : Blob ) : string ;
2018-03-29 02:46:57 +02:00
readAsDataURL ( blob : Blob ) : string ;
2018-11-13 01:27:38 +01:00
readAsText ( blob : Blob , encoding? : string ) : string ;
2018-03-29 02:46:57 +02:00
}
declare var FileReaderSync : {
prototype : FileReaderSync ;
new ( ) : FileReaderSync ;
2017-08-01 00:54:41 +02:00
} ;
2019-07-29 19:33:43 +02:00
/** Provides a way to easily construct a set of key/value pairs representing 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". */
2017-08-01 00:54:41 +02:00
interface FormData {
append ( name : string , value : string | Blob , fileName? : string ) : void ;
2018-03-29 02:46:57 +02:00
delete ( name : string ) : void ;
get ( name : string ) : FormDataEntryValue | null ;
getAll ( name : string ) : FormDataEntryValue [ ] ;
has ( name : string ) : boolean ;
set ( name : string , value : string | Blob , fileName? : string ) : void ;
2018-06-11 05:05:12 +02:00
forEach ( callbackfn : ( value : FormDataEntryValue , key : string , parent : FormData ) = > void , thisArg? : any ) : void ;
2016-12-15 07:03:00 +01:00
}
2017-08-01 00:54:41 +02:00
declare var FormData : {
prototype : FormData ;
2018-08-17 18:13:43 +02:00
new ( ) : FormData ;
2017-08-01 00:54:41 +02:00
} ;
2019-07-29 19:33:43 +02:00
interface GenericTransformStream {
/ * *
* Returns a readable stream whose chunks are strings resulting from running encoding ' s decoder on the chunks written to writable .
* /
readonly readable : ReadableStream ;
/ * *
* Returns a writable stream which accepts BufferSource chunks and runs them through encoding ' s decoder before making them available to readable .
*
* Typically this will be used via the pipeThrough ( ) method on a ReadableStream source .
*
* ` ` `
* var decoder = new TextDecoderStream ( encoding ) ;
* byteReadable
* . pipeThrough ( decoder )
* . pipeTo ( textWritable ) ;
* ` ` `
*
* If the error mode is "fatal" and encoding ' s decoder returns error , both readable and writable will be errored with a TypeError .
* /
readonly writable : WritableStream ;
2018-03-29 02:46:57 +02:00
}
2019-07-29 19:33:43 +02:00
/** This Fetch API interface allows you to perform various actions on HTTP request and response headers. These actions include retrieving, setting, adding to, and removing. A Headers object has an associated header list, which is initially empty and consists of zero or more name and value pairs. You can add to this using methods like append() (see Examples.) In all methods of this interface, header names are matched by case-insensitive byte sequence. */
2017-02-15 23:44:31 +01:00
interface Headers {
append ( name : string , value : string ) : void ;
delete ( name : string ) : void ;
get ( name : string ) : string | null ;
has ( name : string ) : boolean ;
set ( name : string , value : string ) : void ;
2018-06-11 05:05:12 +02:00
forEach ( callbackfn : ( value : string , key : string , parent : Headers ) = > void , thisArg? : any ) : void ;
2017-02-15 23:44:31 +01:00
}
declare var Headers : {
prototype : Headers ;
2017-12-02 20:16:59 +01:00
new ( init? : HeadersInit ) : Headers ;
2017-08-01 00:54:41 +02:00
} ;
2017-02-15 23:44:31 +01:00
2018-06-11 05:05:12 +02:00
interface HkdfCtrParams extends Algorithm {
context : Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer ;
hash : string | Algorithm ;
label : Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer ;
}
interface IDBArrayKey extends Array < IDBValidKey > {
2018-03-29 02:46:57 +02:00
}
2019-07-29 19:33:43 +02:00
/** This IndexedDB API interface represents a cursor for traversing or iterating over multiple records in a database. */
2016-12-15 07:03:00 +01:00
interface IDBCursor {
2018-06-11 05:05:12 +02:00
/ * *
2019-07-29 19:33:43 +02:00
* Returns the direction ( "next" , "nextunique" , "prev" or "prevunique" ) of the cursor .
2018-06-11 05:05:12 +02:00
* /
2017-04-26 23:38:47 +02:00
readonly direction : IDBCursorDirection ;
2018-06-11 05:05:12 +02:00
/ * *
2019-07-29 19:33:43 +02:00
* Returns the key of the cursor . Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished .
2018-06-11 05:05:12 +02:00
* /
2019-02-28 23:35:03 +01:00
readonly key : IDBValidKey ;
2018-06-11 05:05:12 +02:00
/ * *
2019-07-29 19:33:43 +02:00
* Returns the effective key of the cursor . Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished .
2018-06-11 05:05:12 +02:00
* /
2019-02-28 23:35:03 +01:00
readonly primaryKey : IDBValidKey ;
2018-06-11 05:05:12 +02:00
/ * *
* Returns the IDBObjectStore or IDBIndex the cursor was opened from .
* /
2018-03-29 02:46:57 +02:00
readonly source : IDBObjectStore | IDBIndex ;
2018-06-11 05:05:12 +02:00
/ * *
2019-07-29 19:33:43 +02:00
* Advances the cursor through the next count records in range .
2018-06-11 05:05:12 +02:00
* /
2016-12-15 07:03:00 +01:00
advance ( count : number ) : void ;
2018-06-11 05:05:12 +02:00
/ * *
2019-07-29 19:33:43 +02:00
* Advances the cursor to the next record in range .
2018-06-11 05:05:12 +02:00
* /
2019-02-28 23:35:03 +01:00
continue ( key? : IDBValidKey ) : void ;
2018-06-11 05:05:12 +02:00
/ * *
2019-07-29 19:33:43 +02:00
* Advances the cursor to the next record in range matching or after key and primaryKey . Throws an "InvalidAccessError" DOMException if the source is not an index .
2018-06-11 05:05:12 +02:00
* /
2019-02-28 23:35:03 +01:00
continuePrimaryKey ( key : IDBValidKey , primaryKey : IDBValidKey ) : void ;
2018-06-11 05:05:12 +02:00
/ * *
* Delete the record pointed at by the cursor with a new value .
2019-07-29 19:33:43 +02:00
*
2018-06-11 05:05:12 +02:00
* If successful , request ' s result will be undefined .
* /
2018-08-17 18:13:43 +02:00
delete ( ) : IDBRequest < undefined > ;
2018-06-11 05:05:12 +02:00
/ * *
* Updated the record pointed at by the cursor with a new value .
2019-07-29 19:33:43 +02:00
*
2018-06-11 05:05:12 +02:00
* Throws a "DataError" DOMException if the effective object store uses in - line keys and the key would have changed .
2019-07-29 19:33:43 +02:00
*
2018-06-11 05:05:12 +02:00
* If successful , request 's result will be the record' s key .
* /
2018-08-17 18:13:43 +02:00
update ( value : any ) : IDBRequest < IDBValidKey > ;
2016-12-15 07:03:00 +01:00
}
declare var IDBCursor : {
prototype : IDBCursor ;
new ( ) : IDBCursor ;
2017-08-01 00:54:41 +02:00
} ;
2016-12-15 07:03:00 +01:00
2019-07-29 19:33:43 +02:00
/** This IndexedDB API interface represents a cursor for traversing or iterating over multiple records in a database. It is the same as the IDBCursor, except that it includes the value property. */
2016-12-15 07:03:00 +01:00
interface IDBCursorWithValue extends IDBCursor {
2018-06-11 05:05:12 +02:00
/ * *
* Returns the cursor ' s current value .
* /
2016-12-15 07:03:00 +01:00
readonly value : any ;
}
declare var IDBCursorWithValue : {
prototype : IDBCursorWithValue ;
new ( ) : IDBCursorWithValue ;
2017-08-01 00:54:41 +02:00
} ;
2016-12-15 07:03:00 +01:00
2016-12-15 22:46:39 +01:00
interface IDBDatabaseEventMap {
"abort" : Event ;
2018-06-11 05:05:12 +02:00
"close" : Event ;
2017-02-15 23:44:31 +01:00
"error" : Event ;
2018-06-11 05:05:12 +02:00
"versionchange" : IDBVersionChangeEvent ;
2016-12-15 22:46:39 +01:00
}
2019-07-29 19:33:43 +02:00
/** This IndexedDB API interface provides a connection to a database; you can use an IDBDatabase object to open a transaction on your database then create, manipulate, and delete objects (data) in that database. The interface provides the only way to get and manage versions of the database. */
2016-12-15 07:03:00 +01:00
interface IDBDatabase extends EventTarget {
2018-06-11 05:05:12 +02:00
/ * *
* Returns the name of the database .
* /
2016-12-15 07:03:00 +01:00
readonly name : string ;
2018-06-11 05:05:12 +02:00
/ * *
* Returns a list of the names of object stores in the database .
* /
2016-12-15 07:03:00 +01:00
readonly objectStoreNames : DOMStringList ;
2018-03-29 02:46:57 +02:00
onabort : ( ( this : IDBDatabase , ev : Event ) = > any ) | null ;
2018-06-11 05:05:12 +02:00
onclose : ( ( this : IDBDatabase , ev : Event ) = > any ) | null ;
2018-03-29 02:46:57 +02:00
onerror : ( ( this : IDBDatabase , ev : Event ) = > any ) | null ;
2018-06-11 05:05:12 +02:00
onversionchange : ( ( this : IDBDatabase , ev : IDBVersionChangeEvent ) = > any ) | null ;
/ * *
* Returns the version of the database .
* /
2018-03-29 02:46:57 +02:00
readonly version : number ;
2018-06-11 05:05:12 +02:00
/ * *
* Closes the connection once all running transactions have finished .
* /
2016-12-15 07:03:00 +01:00
close ( ) : void ;
2018-06-11 05:05:12 +02:00
/ * *
* Creates a new object store with the given name and options and returns a new IDBObjectStore .
2019-07-29 19:33:43 +02:00
*
2018-06-11 05:05:12 +02:00
* Throws a "InvalidStateError" DOMException if not called within an upgrade transaction .
* /
2016-12-15 07:03:00 +01:00
createObjectStore ( name : string , optionalParameters? : IDBObjectStoreParameters ) : IDBObjectStore ;
2018-06-11 05:05:12 +02:00
/ * *
* Deletes the object store with the given name .
2019-07-29 19:33:43 +02:00
*
2018-06-11 05:05:12 +02:00
* Throws a "InvalidStateError" DOMException if not called within an upgrade transaction .
* /
2016-12-15 07:03:00 +01:00
deleteObjectStore ( name : string ) : void ;
2018-06-11 05:05:12 +02:00
/ * *
2019-07-29 19:33:43 +02:00
* Returns a new transaction with the given mode ( "readonly" or "readwrite" ) and scope which can be a single object store name or an array of names .
2018-06-11 05:05:12 +02:00
* /
2017-08-01 00:54:41 +02:00
transaction ( storeNames : string | string [ ] , mode? : IDBTransactionMode ) : IDBTransaction ;
2017-12-02 20:16:59 +01:00
addEventListener < K extends keyof IDBDatabaseEventMap > ( type : K , listener : ( this : IDBDatabase , ev : IDBDatabaseEventMap [ K ] ) = > any , options? : boolean | AddEventListenerOptions ) : void ;
addEventListener ( type : string , listener : EventListenerOrEventListenerObject , options? : boolean | AddEventListenerOptions ) : void ;
removeEventListener < K extends keyof IDBDatabaseEventMap > ( type : K , listener : ( this : IDBDatabase , ev : IDBDatabaseEventMap [ K ] ) = > any , options? : boolean | EventListenerOptions ) : void ;
removeEventListener ( type : string , listener : EventListenerOrEventListenerObject , options? : boolean | EventListenerOptions ) : void ;
2016-12-15 07:03:00 +01:00
}
declare var IDBDatabase : {
prototype : IDBDatabase ;
new ( ) : IDBDatabase ;
2017-08-01 00:54:41 +02:00
} ;
2016-12-15 07:03:00 +01:00
2019-02-28 23:35:03 +01:00
/** In the following code snippet, we make a request to open a database, and include handlers for the success and error cases. For a full working example, see our To-do Notifications app (view example live.) */
2016-12-15 07:03:00 +01:00
interface IDBFactory {
2018-06-11 05:05:12 +02:00
/ * *
2019-07-29 19:33:43 +02:00
* Compares two values as keys . Returns - 1 if key1 precedes key2 , 1 if key2 precedes key1 , and 0 if the keys are equal .
*
2018-06-11 05:05:12 +02:00
* Throws a "DataError" DOMException if either input is not a valid key .
* /
2016-12-15 07:03:00 +01:00
cmp ( first : any , second : any ) : number ;
2018-06-11 05:05:12 +02:00
/ * *
2019-07-29 19:33:43 +02:00
* Attempts to delete the named database . If the database already exists and there are open connections that don 't close in response to a versionchange event, the request will be blocked until all they close. If the request is successful request' s result will be null .
2018-06-11 05:05:12 +02:00
* /
2016-12-15 07:03:00 +01:00
deleteDatabase ( name : string ) : IDBOpenDBRequest ;
2018-06-11 05:05:12 +02:00
/ * *
2019-07-29 19:33:43 +02:00
* Attempts to open a connection to the named database with the current version , or 1 if it does not already exist . If the request is successful request ' s result will be the connection .
2018-06-11 05:05:12 +02:00
* /
2016-12-15 07:03:00 +01:00
open ( name : string , version? : number ) : IDBOpenDBRequest ;
}
declare var IDBFactory : {
prototype : IDBFactory ;
new ( ) : IDBFactory ;
2017-08-01 00:54:41 +02:00
} ;
2016-12-15 07:03:00 +01:00
2019-02-28 23:35:03 +01:00
/** IDBIndex interface of the IndexedDB API provides asynchronous access to an index in a database. An index is a kind of object store for looking up records in another object store, called the referenced object store. You use this interface to retrieve data. */
2016-12-15 07:03:00 +01:00
interface IDBIndex {
2018-03-29 02:46:57 +02:00
readonly keyPath : string | string [ ] ;
2018-06-11 05:05:12 +02:00
readonly multiEntry : boolean ;
/ * *
2019-07-29 19:33:43 +02:00
* Returns the name of the index .
2018-06-11 05:05:12 +02:00
* /
name : string ;
/ * *
* Returns the IDBObjectStore the index belongs to .
* /
2016-12-15 07:03:00 +01:00
readonly objectStore : IDBObjectStore ;
readonly unique : boolean ;
2018-06-11 05:05:12 +02:00
/ * *
* Retrieves the number of records matching the given key or key range in query .
2019-07-29 19:33:43 +02:00
*
* If successful , request ' s result will be the count .
2018-06-11 05:05:12 +02:00
* /
2018-08-17 18:13:43 +02:00
count ( key? : IDBValidKey | IDBKeyRange ) : IDBRequest < number > ;
2018-06-11 05:05:12 +02:00
/ * *
2019-07-29 19:33:43 +02:00
* Retrieves the value of the first record matching the given key or key range in query .
*
2018-06-11 05:05:12 +02:00
* If successful , request ' s result will be the value , or undefined if there was no matching record .
* /
2018-08-17 18:13:43 +02:00
get ( key : IDBValidKey | IDBKeyRange ) : IDBRequest < any | undefined > ;
2018-06-11 05:05:12 +02:00
/ * *
* Retrieves the values of the records matching the given key or key range in query ( up to count if given ) .
2019-07-29 19:33:43 +02:00
*
2018-06-11 05:05:12 +02:00
* If successful , request ' s result will be an Array of the values .
* /
2019-07-29 19:33:43 +02:00
getAll ( query? : IDBValidKey | IDBKeyRange | null , count? : number ) : IDBRequest < any [ ] > ;
2018-06-11 05:05:12 +02:00
/ * *
* Retrieves the keys of records matching the given key or key range in query ( up to count if given ) .
2019-07-29 19:33:43 +02:00
*
2018-06-11 05:05:12 +02:00
* If successful , request ' s result will be an Array of the keys .
* /
2019-07-29 19:33:43 +02:00
getAllKeys ( query? : IDBValidKey | IDBKeyRange | null , count? : number ) : IDBRequest < IDBValidKey [ ] > ;
2018-06-11 05:05:12 +02:00
/ * *
2019-07-29 19:33:43 +02:00
* Retrieves the key of the first record matching the given key or key range in query .
*
2018-06-11 05:05:12 +02:00
* If successful , request ' s result will be the key , or undefined if there was no matching record .
* /
2018-08-17 18:13:43 +02:00
getKey ( key : IDBValidKey | IDBKeyRange ) : IDBRequest < IDBValidKey | undefined > ;
2018-06-11 05:05:12 +02:00
/ * *
2019-07-29 19:33:43 +02:00
* Opens a cursor over the records matching query , ordered by direction . If query is null , all records in index are matched .
*
2018-06-11 05:05:12 +02:00
* If successful , request ' s result will be an IDBCursorWithValue , or null if there were no matching records .
* /
2019-07-29 19:33:43 +02:00
openCursor ( query? : IDBValidKey | IDBKeyRange | null , direction? : IDBCursorDirection ) : IDBRequest < IDBCursorWithValue | null > ;
2018-06-11 05:05:12 +02:00
/ * *
* Opens a cursor with key only flag set over the records matching query , ordered by direction . If query is null , all records in index are matched .
2019-07-29 19:33:43 +02:00
*
2018-06-11 05:05:12 +02:00
* If successful , request ' s result will be an IDBCursor , or null if there were no matching records .
* /
2019-07-29 19:33:43 +02:00
openKeyCursor ( query? : IDBValidKey | IDBKeyRange | null , direction? : IDBCursorDirection ) : IDBRequest < IDBCursor | null > ;
2016-12-15 07:03:00 +01:00
}
declare var IDBIndex : {
prototype : IDBIndex ;
new ( ) : IDBIndex ;
2017-08-01 00:54:41 +02:00
} ;
2016-12-15 07:03:00 +01:00
2019-02-28 23:35:03 +01:00
/** A key range can be a single value or a range with upper and lower bounds or endpoints. If the key range has both upper and lower bounds, then it is bounded; if it has no bounds, it is unbounded. A bounded key range can either be open (the endpoints are excluded) or closed (the endpoints are included). To retrieve all keys within a certain range, you can use the following code constructs: */
2016-12-15 07:03:00 +01:00
interface IDBKeyRange {
2018-06-11 05:05:12 +02:00
/ * *
* Returns lower bound , or undefined if none .
* /
2016-12-15 07:03:00 +01:00
readonly lower : any ;
2018-06-11 05:05:12 +02:00
/ * *
* Returns true if the lower open flag is set , and false otherwise .
* /
2016-12-15 07:03:00 +01:00
readonly lowerOpen : boolean ;
2018-06-11 05:05:12 +02:00
/ * *
* Returns upper bound , or undefined if none .
* /
2016-12-15 07:03:00 +01:00
readonly upper : any ;
2018-06-11 05:05:12 +02:00
/ * *
* Returns true if the upper open flag is set , and false otherwise .
* /
2016-12-15 07:03:00 +01:00
readonly upperOpen : boolean ;
2018-06-11 05:05:12 +02:00
/ * *
* Returns true if key is included in the range , and false otherwise .
* /
includes ( key : any ) : boolean ;
2016-12-15 07:03:00 +01:00
}
declare var IDBKeyRange : {
prototype : IDBKeyRange ;
new ( ) : IDBKeyRange ;
2018-06-11 05:05:12 +02:00
/ * *
2019-07-29 19:33:43 +02:00
* Returns a new IDBKeyRange spanning from lower to upper . If lowerOpen is true , lower is not included in the range . If upperOpen is true , upper is not included in the range .
2018-06-11 05:05:12 +02:00
* /
2016-12-15 07:03:00 +01:00
bound ( lower : any , upper : any , lowerOpen? : boolean , upperOpen? : boolean ) : IDBKeyRange ;
2018-06-11 05:05:12 +02:00
/ * *
2019-07-29 19:33:43 +02:00
* Returns a new IDBKeyRange starting at key with no upper bound . If open is true , key is not included in the range .
2018-06-11 05:05:12 +02:00
* /
2016-12-15 07:03:00 +01:00
lowerBound ( lower : any , open? : boolean ) : IDBKeyRange ;
2018-06-11 05:05:12 +02:00
/ * *
* Returns a new IDBKeyRange spanning only key .
* /
2016-12-15 07:03:00 +01:00
only ( value : any ) : IDBKeyRange ;
2018-06-11 05:05:12 +02:00
/ * *
* Returns a new IDBKeyRange with no lower bound and ending at key . If open is true , key is not included in the range .
* /
2016-12-15 07:03:00 +01:00
upperBound ( upper : any , open? : boolean ) : IDBKeyRange ;
2017-08-01 00:54:41 +02:00
} ;
2016-12-15 07:03:00 +01:00
2019-02-28 23:35:03 +01:00
/** This example shows a variety of different uses of object stores, from updating the data structure with IDBObjectStore.createIndex inside an onupgradeneeded function, to adding a new item to our object store with IDBObjectStore.add. For a full working example, see our To-do Notifications app (view example live.) */
2016-12-15 07:03:00 +01:00
interface IDBObjectStore {
2018-06-11 05:05:12 +02:00
/ * *
* Returns true if the store has a key generator , and false otherwise .
* /
readonly autoIncrement : boolean ;
/ * *
* Returns a list of the names of indexes in the store .
* /
2016-12-15 07:03:00 +01:00
readonly indexNames : DOMStringList ;
2018-06-11 05:05:12 +02:00
/ * *
* Returns the key path of the store , or null if none .
* /
readonly keyPath : string | string [ ] ;
/ * *
2019-07-29 19:33:43 +02:00
* Returns the name of the store .
2018-06-11 05:05:12 +02:00
* /
name : string ;
/ * *
* Returns the associated transaction .
* /
2016-12-15 07:03:00 +01:00
readonly transaction : IDBTransaction ;
2019-07-29 19:33:43 +02:00
/ * *
* Adds or updates a record in store with the given value and key .
*
* If the store uses in - line keys and key is specified a "DataError" DOMException will be thrown .
*
* If put ( ) is used , any existing record with the key will be replaced . If add ( ) is used , and if a record with the key already exists the request will fail , with request ' s error set to a "ConstraintError" DOMException .
*
* If successful , request 's result will be the record' s key .
* /
2019-02-28 23:35:03 +01:00
add ( value : any , key? : IDBValidKey ) : IDBRequest < IDBValidKey > ;
2018-06-11 05:05:12 +02:00
/ * *
* Deletes all records in store .
2019-07-29 19:33:43 +02:00
*
* If successful , request ' s result will be undefined .
2018-06-11 05:05:12 +02:00
* /
2018-08-17 18:13:43 +02:00
clear ( ) : IDBRequest < undefined > ;
2018-06-11 05:05:12 +02:00
/ * *
2019-07-29 19:33:43 +02:00
* Retrieves the number of records matching the given key or key range in query .
*
2018-06-11 05:05:12 +02:00
* If successful , request ' s result will be the count .
* /
2018-08-17 18:13:43 +02:00
count ( key? : IDBValidKey | IDBKeyRange ) : IDBRequest < number > ;
2018-06-11 05:05:12 +02:00
/ * *
2019-07-29 19:33:43 +02:00
* Creates a new index in store with the given name , keyPath and options and returns a new IDBIndex . If the keyPath and options define constraints that cannot be satisfied with the data already in store the upgrade transaction will abort with a "ConstraintError" DOMException .
*
* Throws an "InvalidStateError" DOMException if not called within an upgrade transaction .
2018-06-11 05:05:12 +02:00
* /
createIndex ( name : string , keyPath : string | string [ ] , options? : IDBIndexParameters ) : IDBIndex ;
/ * *
* Deletes records in store with the given key or in the given key range in query .
2019-07-29 19:33:43 +02:00
*
* If successful , request ' s result will be undefined .
2018-06-11 05:05:12 +02:00
* /
2018-08-17 18:13:43 +02:00
delete ( key : IDBValidKey | IDBKeyRange ) : IDBRequest < undefined > ;
2018-06-11 05:05:12 +02:00
/ * *
* Deletes the index in store with the given name .
2019-07-29 19:33:43 +02:00
*
* Throws an "InvalidStateError" DOMException if not called within an upgrade transaction .
2018-06-11 05:05:12 +02:00
* /
deleteIndex ( name : string ) : void ;
/ * *
2019-07-29 19:33:43 +02:00
* Retrieves the value of the first record matching the given key or key range in query .
*
2018-06-11 05:05:12 +02:00
* If successful , request ' s result will be the value , or undefined if there was no matching record .
* /
2018-08-17 18:13:43 +02:00
get ( query : IDBValidKey | IDBKeyRange ) : IDBRequest < any | undefined > ;
2018-06-11 05:05:12 +02:00
/ * *
2019-07-29 19:33:43 +02:00
* Retrieves the values of the records matching the given key or key range in query ( up to count if given ) .
*
* If successful , request ' s result will be an Array of the values .
2018-06-11 05:05:12 +02:00
* /
2019-07-29 19:33:43 +02:00
getAll ( query? : IDBValidKey | IDBKeyRange | null , count? : number ) : IDBRequest < any [ ] > ;
2018-06-11 05:05:12 +02:00
/ * *
2019-07-29 19:33:43 +02:00
* Retrieves the keys of records matching the given key or key range in query ( up to count if given ) .
*
* If successful , request ' s result will be an Array of the keys .
2018-06-11 05:05:12 +02:00
* /
2019-07-29 19:33:43 +02:00
getAllKeys ( query? : IDBValidKey | IDBKeyRange | null , count? : number ) : IDBRequest < IDBValidKey [ ] > ;
2018-06-11 05:05:12 +02:00
/ * *
2019-07-29 19:33:43 +02:00
* Retrieves the key of the first record matching the given key or key range in query .
*
2018-06-11 05:05:12 +02:00
* If successful , request ' s result will be the key , or undefined if there was no matching record .
* /
2018-08-17 18:13:43 +02:00
getKey ( query : IDBValidKey | IDBKeyRange ) : IDBRequest < IDBValidKey | undefined > ;
2016-12-15 07:03:00 +01:00
index ( name : string ) : IDBIndex ;
2018-06-11 05:05:12 +02:00
/ * *
2019-07-29 19:33:43 +02:00
* Opens a cursor over the records matching query , ordered by direction . If query is null , all records in store are matched .
*
2018-06-11 05:05:12 +02:00
* If successful , request ' s result will be an IDBCursorWithValue pointing at the first matching record , or null if there were no matching records .
* /
2019-07-29 19:33:43 +02:00
openCursor ( query? : IDBValidKey | IDBKeyRange | null , direction? : IDBCursorDirection ) : IDBRequest < IDBCursorWithValue | null > ;
2018-06-11 05:05:12 +02:00
/ * *
* Opens a cursor with key only flag set over the records matching query , ordered by direction . If query is null , all records in store are matched .
2019-07-29 19:33:43 +02:00
*
* If successful , request ' s result will be an IDBCursor pointing at the first matching record , or null if there were no matching records .
* /
openKeyCursor ( query? : IDBValidKey | IDBKeyRange | null , direction? : IDBCursorDirection ) : IDBRequest < IDBCursor | null > ;
/ * *
* Adds or updates a record in store with the given value and key .
*
* If the store uses in - line keys and key is specified a "DataError" DOMException will be thrown .
*
* If put ( ) is used , any existing record with the key will be replaced . If add ( ) is used , and if a record with the key already exists the request will fail , with request ' s error set to a "ConstraintError" DOMException .
*
* If successful , request 's result will be the record' s key .
2018-06-11 05:05:12 +02:00
* /
2019-02-28 23:35:03 +01:00
put ( value : any , key? : IDBValidKey ) : IDBRequest < IDBValidKey > ;
2016-12-15 07:03:00 +01:00
}
declare var IDBObjectStore : {
prototype : IDBObjectStore ;
new ( ) : IDBObjectStore ;
2017-08-01 00:54:41 +02:00
} ;
2016-12-15 07:03:00 +01:00
2016-12-15 22:46:39 +01:00
interface IDBOpenDBRequestEventMap extends IDBRequestEventMap {
"blocked" : Event ;
"upgradeneeded" : IDBVersionChangeEvent ;
}
2019-02-28 23:35:03 +01:00
/** Also inherits methods from its parents IDBRequest and EventTarget. */
2018-08-17 18:13:43 +02:00
interface IDBOpenDBRequest extends IDBRequest < IDBDatabase > {
2018-03-29 02:46:57 +02:00
onblocked : ( ( this : IDBOpenDBRequest , ev : Event ) = > any ) | null ;
onupgradeneeded : ( ( this : IDBOpenDBRequest , ev : IDBVersionChangeEvent ) = > any ) | null ;
2017-12-02 20:16:59 +01:00
addEventListener < K extends keyof IDBOpenDBRequestEventMap > ( type : K , listener : ( this : IDBOpenDBRequest , ev : IDBOpenDBRequestEventMap [ K ] ) = > any , options? : boolean | AddEventListenerOptions ) : void ;
addEventListener ( type : string , listener : EventListenerOrEventListenerObject , options? : boolean | AddEventListenerOptions ) : void ;
removeEventListener < K extends keyof IDBOpenDBRequestEventMap > ( type : K , listener : ( this : IDBOpenDBRequest , ev : IDBOpenDBRequestEventMap [ K ] ) = > any , options? : boolean | EventListenerOptions ) : void ;
removeEventListener ( type : string , listener : EventListenerOrEventListenerObject , options? : boolean | EventListenerOptions ) : void ;
2016-12-15 07:03:00 +01:00
}
declare var IDBOpenDBRequest : {
prototype : IDBOpenDBRequest ;
new ( ) : IDBOpenDBRequest ;
2017-08-01 00:54:41 +02:00
} ;
2016-12-15 07:03:00 +01:00
2016-12-15 22:46:39 +01:00
interface IDBRequestEventMap {
2017-02-15 23:44:31 +01:00
"error" : Event ;
2016-12-15 22:46:39 +01:00
"success" : Event ;
}
2019-02-28 23:35:03 +01:00
/** The request object does not initially contain any information about the result of the operation, but once information becomes available, an event is fired on the request, and the information becomes available through the properties of the IDBRequest instance. */
2018-08-17 18:13:43 +02:00
interface IDBRequest < T = any > extends EventTarget {
2018-06-11 05:05:12 +02:00
/ * *
2019-07-29 19:33:43 +02:00
* When a request is completed , returns the error ( a DOMException ) , or null if the request succeeded . Throws a "InvalidStateError" DOMException if the request is still pending .
2018-06-11 05:05:12 +02:00
* /
readonly error : DOMException | null ;
2018-08-17 18:13:43 +02:00
onerror : ( ( this : IDBRequest < T > , ev : Event ) = > any ) | null ;
onsuccess : ( ( this : IDBRequest < T > , ev : Event ) = > any ) | null ;
2018-06-11 05:05:12 +02:00
/ * *
2019-07-29 19:33:43 +02:00
* Returns "pending" until a request is complete , then returns "done" .
2018-06-11 05:05:12 +02:00
* /
2017-04-26 23:38:47 +02:00
readonly readyState : IDBRequestReadyState ;
2018-06-11 05:05:12 +02:00
/ * *
2019-07-29 19:33:43 +02:00
* When a request is completed , returns the result , or undefined if the request failed . Throws a "InvalidStateError" DOMException if the request is still pending .
2018-06-11 05:05:12 +02:00
* /
2018-08-17 18:13:43 +02:00
readonly result : T ;
2018-06-11 05:05:12 +02:00
/ * *
2019-07-29 19:33:43 +02:00
* Returns the IDBObjectStore , IDBIndex , or IDBCursor the request was made against , or null if is was an open request .
2018-06-11 05:05:12 +02:00
* /
2018-03-29 02:46:57 +02:00
readonly source : IDBObjectStore | IDBIndex | IDBCursor ;
2018-06-11 05:05:12 +02:00
/ * *
2019-07-29 19:33:43 +02:00
* Returns the IDBTransaction the request was made within . If this as an open request , then it returns an upgrade transaction while it is running , or null otherwise .
2018-06-11 05:05:12 +02:00
* /
readonly transaction : IDBTransaction | null ;
2018-08-17 18:13:43 +02:00
addEventListener < K extends keyof IDBRequestEventMap > ( type : K , listener : ( this : IDBRequest < T > , ev : IDBRequestEventMap [ K ] ) = > any , options? : boolean | AddEventListenerOptions ) : void ;
2017-12-02 20:16:59 +01:00
addEventListener ( type : string , listener : EventListenerOrEventListenerObject , options? : boolean | AddEventListenerOptions ) : void ;
2018-08-17 18:13:43 +02:00
removeEventListener < K extends keyof IDBRequestEventMap > ( type : K , listener : ( this : IDBRequest < T > , ev : IDBRequestEventMap [ K ] ) = > any , options? : boolean | EventListenerOptions ) : void ;
2017-12-02 20:16:59 +01:00
removeEventListener ( type : string , listener : EventListenerOrEventListenerObject , options? : boolean | EventListenerOptions ) : void ;
2016-12-15 07:03:00 +01:00
}
declare var IDBRequest : {
prototype : IDBRequest ;
new ( ) : IDBRequest ;
2017-08-01 00:54:41 +02:00
} ;
2016-12-15 07:03:00 +01:00
2016-12-15 22:46:39 +01:00
interface IDBTransactionEventMap {
"abort" : Event ;
"complete" : Event ;
2017-02-15 23:44:31 +01:00
"error" : Event ;
2016-12-15 22:46:39 +01:00
}
2016-12-15 07:03:00 +01:00
interface IDBTransaction extends EventTarget {
2018-06-11 05:05:12 +02:00
/ * *
* Returns the transaction ' s connection .
* /
2016-12-15 07:03:00 +01:00
readonly db : IDBDatabase ;
2018-06-11 05:05:12 +02:00
/ * *
2019-07-29 19:33:43 +02:00
* If the transaction was aborted , returns the error ( a DOMException ) providing the reason .
2018-06-11 05:05:12 +02:00
* /
2017-08-01 00:54:41 +02:00
readonly error : DOMException ;
2018-06-11 05:05:12 +02:00
/ * *
2019-07-29 19:33:43 +02:00
* Returns the mode the transaction was created with ( "readonly" or "readwrite" ) , or "versionchange" for an upgrade transaction .
2018-06-11 05:05:12 +02:00
* /
2017-04-26 23:38:47 +02:00
readonly mode : IDBTransactionMode ;
2018-06-11 05:05:12 +02:00
/ * *
2019-07-29 19:33:43 +02:00
* Returns a list of the names of object stores in the transaction ' s scope . For an upgrade transaction this is all object stores in the database .
2018-06-11 05:05:12 +02:00
* /
readonly objectStoreNames : DOMStringList ;
2018-03-29 02:46:57 +02:00
onabort : ( ( this : IDBTransaction , ev : Event ) = > any ) | null ;
oncomplete : ( ( this : IDBTransaction , ev : Event ) = > any ) | null ;
onerror : ( ( this : IDBTransaction , ev : Event ) = > any ) | null ;
2018-06-11 05:05:12 +02:00
/ * *
2019-07-29 19:33:43 +02:00
* Aborts the transaction . All pending requests will fail with a "AbortError" DOMException and all changes made to the database will be reverted .
2018-06-11 05:05:12 +02:00
* /
2016-12-15 07:03:00 +01:00
abort ( ) : void ;
2018-06-11 05:05:12 +02:00
/ * *
* Returns an IDBObjectStore in the transaction ' s scope .
* /
2016-12-15 07:03:00 +01:00
objectStore ( name : string ) : IDBObjectStore ;
2017-12-02 20:16:59 +01:00
addEventListener < K extends keyof IDBTransactionEventMap > ( type : K , listener : ( this : IDBTransaction , ev : IDBTransactionEventMap [ K ] ) = > any , options? : boolean | AddEventListenerOptions ) : void ;
addEventListener ( type : string , listener : EventListenerOrEventListenerObject , options? : boolean | AddEventListenerOptions ) : void ;
removeEventListener < K extends keyof IDBTransactionEventMap > ( type : K , listener : ( this : IDBTransaction , ev : IDBTransactionEventMap [ K ] ) = > any , options? : boolean | EventListenerOptions ) : void ;
removeEventListener ( type : string , listener : EventListenerOrEventListenerObject , options? : boolean | EventListenerOptions ) : void ;
2016-12-15 07:03:00 +01:00
}
declare var IDBTransaction : {
prototype : IDBTransaction ;
new ( ) : IDBTransaction ;
2017-08-01 00:54:41 +02:00
} ;
2016-12-15 07:03:00 +01:00
2019-07-29 19:33:43 +02:00
/** This IndexedDB API interface indicates that the version of the database has changed, as the result of an IDBOpenDBRequest.onupgradeneeded event handler function. */
2016-12-15 07:03:00 +01:00
interface IDBVersionChangeEvent extends Event {
readonly newVersion : number | null ;
readonly oldVersion : number ;
}
declare var IDBVersionChangeEvent : {
prototype : IDBVersionChangeEvent ;
2018-06-11 05:05:12 +02:00
new ( type : string , eventInitDict? : IDBVersionChangeEventInit ) : IDBVersionChangeEvent ;
2017-08-01 00:54:41 +02:00
} ;
2016-12-15 07:03:00 +01:00
2018-03-29 02:46:57 +02:00
interface ImageBitmap {
2018-08-17 18:13:43 +02:00
/ * *
2019-07-29 19:33:43 +02:00
* Returns the intrinsic height of the image , in CSS pixels .
2018-08-17 18:13:43 +02:00
* /
2016-12-15 07:03:00 +01:00
readonly height : number ;
2018-08-17 18:13:43 +02:00
/ * *
2019-07-29 19:33:43 +02:00
* Returns the intrinsic width of the image , in CSS pixels .
2018-08-17 18:13:43 +02:00
* /
2016-12-15 07:03:00 +01:00
readonly width : number ;
2018-08-17 18:13:43 +02:00
/ * *
* Releases imageBitmap ' s underlying bitmap data .
* /
2018-03-29 02:46:57 +02:00
close ( ) : void ;
2016-12-15 07:03:00 +01:00
}
2018-08-17 18:13:43 +02:00
declare var ImageBitmap : {
prototype : ImageBitmap ;
new ( ) : ImageBitmap ;
} ;
2018-03-29 02:46:57 +02:00
interface ImageBitmapOptions {
colorSpaceConversion ? : "none" | "default" ;
imageOrientation ? : "none" | "flipY" ;
premultiplyAlpha ? : "none" | "premultiply" | "default" ;
resizeHeight? : number ;
resizeQuality ? : "pixelated" | "low" | "medium" | "high" ;
resizeWidth? : number ;
}
2019-07-29 19:33:43 +02:00
interface ImageBitmapRenderingContext {
/ * *
* Returns the canvas element that the context is bound to .
* /
readonly canvas : OffscreenCanvas ;
/ * *
* Transfers the underlying bitmap data from imageBitmap to context , and the bitmap becomes the contents of the canvas element to which context is bound .
* /
transferFromImageBitmap ( bitmap : ImageBitmap | null ) : void ;
}
declare var ImageBitmapRenderingContext : {
prototype : ImageBitmapRenderingContext ;
new ( ) : ImageBitmapRenderingContext ;
} ;
/** The underlying pixel data of an area of a <canvas> element. It is created using the ImageData() constructor or creator methods on the CanvasRenderingContext2D object associated with a canvas: createImageData() and getImageData(). It can also be used to set a part of the canvas by using putImageData(). */
2018-03-29 02:46:57 +02:00
interface ImageData {
2018-08-17 18:13:43 +02:00
/ * *
2019-07-29 19:33:43 +02:00
* Returns the one - dimensional array containing the data in RGBA order , as integers in the range 0 to 255 .
2018-08-17 18:13:43 +02:00
* /
readonly data : Uint8ClampedArray ;
/ * *
2019-07-29 19:33:43 +02:00
* Returns the actual dimensions of the data in the ImageData object , in pixels .
2018-08-17 18:13:43 +02:00
* /
readonly height : number ;
2019-07-29 19:33:43 +02:00
/ * *
* Returns the actual dimensions of the data in the ImageData object , in pixels .
* /
2018-08-17 18:13:43 +02:00
readonly width : number ;
2018-03-29 02:46:57 +02:00
}
declare var ImageData : {
prototype : ImageData ;
new ( width : number , height : number ) : ImageData ;
new ( array : Uint8ClampedArray , width : number , height : number ) : ImageData ;
} ;
2019-07-29 19:33:43 +02:00
/** This Channel Messaging API interface allows us to create a new message channel and send data through it via its two MessagePort properties. */
2018-03-29 02:46:57 +02:00
interface MessageChannel {
2019-07-29 19:33:43 +02:00
/ * *
* Returns the first MessagePort object .
* /
2018-03-29 02:46:57 +02:00
readonly port1 : MessagePort ;
2019-07-29 19:33:43 +02:00
/ * *
* Returns the second MessagePort object .
* /
2018-03-29 02:46:57 +02:00
readonly port2 : MessagePort ;
}
2016-12-15 07:03:00 +01:00
declare var MessageChannel : {
prototype : MessageChannel ;
new ( ) : MessageChannel ;
2017-08-01 00:54:41 +02:00
} ;
2016-12-15 07:03:00 +01:00
2019-07-29 19:33:43 +02:00
/** A message received by a target object. */
2016-12-15 07:03:00 +01:00
interface MessageEvent extends Event {
2018-08-17 18:13:43 +02:00
/ * *
* Returns the data of the message .
* /
2016-12-15 07:03:00 +01:00
readonly data : any ;
2018-08-17 18:13:43 +02:00
/ * *
2019-07-29 19:33:43 +02:00
* Returns the last event ID string , for server - sent events .
2018-08-17 18:13:43 +02:00
* /
readonly lastEventId : string ;
/ * *
2019-07-29 19:33:43 +02:00
* Returns the origin of the message , for server - sent events and cross - document messaging .
2018-08-17 18:13:43 +02:00
* /
2016-12-15 07:03:00 +01:00
readonly origin : string ;
2018-08-17 18:13:43 +02:00
/ * *
2019-07-29 19:33:43 +02:00
* Returns the MessagePort array sent with the message , for cross - document messaging and channel messaging .
2018-08-17 18:13:43 +02:00
* /
2018-03-29 02:46:57 +02:00
readonly ports : ReadonlyArray < MessagePort > ;
2018-08-17 18:13:43 +02:00
/ * *
2019-07-29 19:33:43 +02:00
* Returns the WindowProxy of the source window , for cross - document messaging , and the MessagePort being attached , in the connect event fired at SharedWorkerGlobalScope objects .
2018-08-17 18:13:43 +02:00
* /
readonly source : MessageEventSource | null ;
2016-12-15 07:03:00 +01:00
}
declare var MessageEvent : {
prototype : MessageEvent ;
new ( type : string , eventInitDict? : MessageEventInit ) : MessageEvent ;
2017-08-01 00:54:41 +02:00
} ;
2016-12-15 07:03:00 +01:00
2016-12-15 22:46:39 +01:00
interface MessagePortEventMap {
"message" : MessageEvent ;
2018-06-11 05:05:12 +02:00
"messageerror" : MessageEvent ;
2016-12-15 22:46:39 +01:00
}
2019-07-29 19:33:43 +02:00
/** This Channel Messaging API interface represents one of the two ports of a MessageChannel, allowing messages to be sent from one port and listening out for them arriving at the other. */
2016-12-15 07:03:00 +01:00
interface MessagePort extends EventTarget {
2018-03-29 02:46:57 +02:00
onmessage : ( ( this : MessagePort , ev : MessageEvent ) = > any ) | null ;
2018-06-11 05:05:12 +02:00
onmessageerror : ( ( this : MessagePort , ev : MessageEvent ) = > any ) | null ;
/ * *
* Disconnects the port , so that it is no longer active .
* /
2016-12-15 07:03:00 +01:00
close ( ) : void ;
2018-06-11 05:05:12 +02:00
/ * *
2019-07-29 19:33:43 +02:00
* Posts a message through the channel . Objects listed in transfer are transferred , not just cloned , meaning that they are no longer usable on the sending side .
*
* Throws a "DataCloneError" DOMException if transfer contains duplicate objects or port , or if message could not be cloned .
2018-06-11 05:05:12 +02:00
* /
2019-07-29 19:33:43 +02:00
postMessage ( message : any , transfer : Transferable [ ] ) : void ;
postMessage ( message : any , options? : PostMessageOptions ) : void ;
2018-06-11 05:05:12 +02:00
/ * *
* Begins dispatching messages received on the port .
* /
2016-12-15 07:03:00 +01:00
start ( ) : void ;
2017-12-02 20:16:59 +01:00
addEventListener < K extends keyof MessagePortEventMap > ( type : K , listener : ( this : MessagePort , ev : MessagePortEventMap [ K ] ) = > any , options? : boolean | AddEventListenerOptions ) : void ;
addEventListener ( type : string , listener : EventListenerOrEventListenerObject , options? : boolean | AddEventListenerOptions ) : void ;
removeEventListener < K extends keyof MessagePortEventMap > ( type : K , listener : ( this : MessagePort , ev : MessagePortEventMap [ K ] ) = > any , options? : boolean | EventListenerOptions ) : void ;
removeEventListener ( type : string , listener : EventListenerOrEventListenerObject , options? : boolean | EventListenerOptions ) : void ;
2016-12-15 07:03:00 +01:00
}
declare var MessagePort : {
prototype : MessagePort ;
new ( ) : MessagePort ;
2017-08-01 00:54:41 +02:00
} ;
2016-12-15 07:03:00 +01:00
2018-06-11 05:05:12 +02:00
interface NavigationPreloadManager {
disable ( ) : Promise < void > ;
enable ( ) : Promise < void > ;
getState ( ) : Promise < NavigationPreloadState > ;
setHeaderValue ( value : string ) : Promise < void > ;
}
declare var NavigationPreloadManager : {
prototype : NavigationPreloadManager ;
new ( ) : NavigationPreloadManager ;
} ;
2018-03-29 02:46:57 +02:00
interface NavigatorBeacon {
sendBeacon ( url : string , data? : Blob | Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | FormData | string | null ) : boolean ;
}
interface NavigatorConcurrentHardware {
readonly hardwareConcurrency : number ;
}
interface NavigatorID {
readonly appCodeName : string ;
readonly appName : string ;
readonly appVersion : string ;
readonly platform : string ;
readonly product : string ;
readonly userAgent : string ;
}
interface NavigatorOnLine {
readonly onLine : boolean ;
}
2018-06-11 05:05:12 +02:00
interface NavigatorStorage {
readonly storage : StorageManager ;
}
2017-02-15 23:44:31 +01:00
interface NotificationEventMap {
"click" : Event ;
"close" : Event ;
"error" : Event ;
"show" : Event ;
}
2019-07-29 19:33:43 +02:00
/** This Notifications API interface is used to configure and display desktop notifications to the user. */
2017-02-15 23:44:31 +01:00
interface Notification extends EventTarget {
2018-06-11 05:05:12 +02:00
readonly actions : ReadonlyArray < NotificationAction > ;
readonly badge : string ;
readonly body : string ;
2018-03-29 02:46:57 +02:00
readonly data : any ;
2017-04-26 23:38:47 +02:00
readonly dir : NotificationDirection ;
2018-06-11 05:05:12 +02:00
readonly icon : string ;
readonly image : string ;
readonly lang : string ;
2018-03-29 02:46:57 +02:00
onclick : ( ( this : Notification , ev : Event ) = > any ) | null ;
onclose : ( ( this : Notification , ev : Event ) = > any ) | null ;
onerror : ( ( this : Notification , ev : Event ) = > any ) | null ;
onshow : ( ( this : Notification , ev : Event ) = > any ) | null ;
2018-06-11 05:05:12 +02:00
readonly renotify : boolean ;
readonly requireInteraction : boolean ;
readonly silent : boolean ;
readonly tag : string ;
readonly timestamp : number ;
2017-02-15 23:44:31 +01:00
readonly title : string ;
2018-06-11 05:05:12 +02:00
readonly vibrate : ReadonlyArray < number > ;
2017-02-15 23:44:31 +01:00
close ( ) : void ;
2017-12-02 20:16:59 +01:00
addEventListener < K extends keyof NotificationEventMap > ( type : K , listener : ( this : Notification , ev : NotificationEventMap [ K ] ) = > any , options? : boolean | AddEventListenerOptions ) : void ;
addEventListener ( type : string , listener : EventListenerOrEventListenerObject , options? : boolean | AddEventListenerOptions ) : void ;
removeEventListener < K extends keyof NotificationEventMap > ( type : K , listener : ( this : Notification , ev : NotificationEventMap [ K ] ) = > any , options? : boolean | EventListenerOptions ) : void ;
removeEventListener ( type : string , listener : EventListenerOrEventListenerObject , options? : boolean | EventListenerOptions ) : void ;
2017-02-15 23:44:31 +01:00
}
declare var Notification : {
prototype : Notification ;
new ( title : string , options? : NotificationOptions ) : Notification ;
2018-06-11 05:05:12 +02:00
readonly maxActions : number ;
readonly permission : NotificationPermission ;
2017-08-01 00:54:41 +02:00
} ;
2017-02-15 23:44:31 +01:00
2019-02-28 23:35:03 +01:00
/** The parameter passed into the onnotificationclick handler, the NotificationEvent interface represents a notification click event that is dispatched on the ServiceWorkerGlobalScope of a ServiceWorker. */
2018-03-29 02:46:57 +02:00
interface NotificationEvent extends ExtendableEvent {
readonly action : string ;
readonly notification : Notification ;
}
declare var NotificationEvent : {
prototype : NotificationEvent ;
new ( type : string , eventInitDict : NotificationEventInit ) : NotificationEvent ;
} ;
2019-02-28 23:35:03 +01:00
/** The OES_element_index_uint extension is part of the WebGL API and adds support for gl.UNSIGNED_INT types to WebGLRenderingContext.drawElements(). */
2018-11-13 01:27:38 +01:00
interface OES_element_index_uint {
}
2019-02-28 23:35:03 +01:00
/** The OES_standard_derivatives extension is part of the WebGL API and adds the GLSL derivative functions dFdx, dFdy, and fwidth. */
2018-11-13 01:27:38 +01:00
interface OES_standard_derivatives {
readonly FRAGMENT_SHADER_DERIVATIVE_HINT_OES : GLenum ;
}
2019-02-28 23:35:03 +01:00
/** The OES_texture_float extension is part of the WebGL API and exposes floating-point pixel types for textures. */
2018-11-13 01:27:38 +01:00
interface OES_texture_float {
}
2019-02-28 23:35:03 +01:00
/** The OES_texture_float_linear extension is part of the WebGL API and allows linear filtering with floating-point pixel types for textures. */
2018-11-13 01:27:38 +01:00
interface OES_texture_float_linear {
}
2019-02-28 23:35:03 +01:00
/** The OES_texture_half_float extension is part of the WebGL API and adds texture formats with 16- (aka half float) and 32-bit floating-point components. */
2018-11-13 01:27:38 +01:00
interface OES_texture_half_float {
readonly HALF_FLOAT_OES : GLenum ;
}
2019-02-28 23:35:03 +01:00
/** The OES_texture_half_float_linear extension is part of the WebGL API and allows linear filtering with half floating-point pixel types for textures. */
2018-11-13 01:27:38 +01:00
interface OES_texture_half_float_linear {
}
interface OES_vertex_array_object {
bindVertexArrayOES ( arrayObject : WebGLVertexArrayObjectOES | null ) : void ;
createVertexArrayOES ( ) : WebGLVertexArrayObjectOES | null ;
deleteVertexArrayOES ( arrayObject : WebGLVertexArrayObjectOES | null ) : void ;
isVertexArrayOES ( arrayObject : WebGLVertexArrayObjectOES | null ) : GLboolean ;
readonly VERTEX_ARRAY_BINDING_OES : GLenum ;
}
2019-07-29 19:33:43 +02:00
interface OffscreenCanvas extends EventTarget {
/ * *
* These attributes return the dimensions of the OffscreenCanvas object ' s bitmap .
*
* They can be set , to replace the bitmap with a new , transparent black bitmap of the specified dimensions ( effectively resizing it ) .
* /
height : number ;
/ * *
* These attributes return the dimensions of the OffscreenCanvas object ' s bitmap .
*
* They can be set , to replace the bitmap with a new , transparent black bitmap of the specified dimensions ( effectively resizing it ) .
* /
width : number ;
/ * *
* Returns a promise that will fulfill with a new Blob object representing a file containing the image in the OffscreenCanvas object .
*
* The argument , if provided , is a dictionary that controls the encoding options of the image file to be created . The type field specifies the file format and has a default value of "image/png" ; that type is also used if the requested type isn ' t supported . If the image format supports variable quality ( such as "image/jpeg" ) , then the quality field is a number in the range 0.0 to 1.0 inclusive indicating the desired quality level for the resulting image .
* /
convertToBlob ( options? : ImageEncodeOptions ) : Promise < Blob > ;
/ * *
* Returns an object that exposes an API for drawing on the OffscreenCanvas object . contextId specifies the desired API : "2d" , "bitmaprenderer" , "webgl" , or "webgl2" . options is handled by that API .
*
* This specification defines the "2d" context below , which is similar but distinct from the "2d" context that is created from a canvas element . The WebGL specifications define the "webgl" and "webgl2" contexts . [ WEBGL ]
*
* Returns null if the canvas has already been initialized with another context type ( e . g . , trying to get a "2d" context after getting a "webgl" context ) .
* /
getContext ( contextId : "2d" , options? : CanvasRenderingContext2DSettings ) : OffscreenCanvasRenderingContext2D | null ;
getContext ( contextId : "bitmaprenderer" , options? : ImageBitmapRenderingContextSettings ) : ImageBitmapRenderingContext | null ;
getContext ( contextId : "webgl" , options? : WebGLContextAttributes ) : WebGLRenderingContext | null ;
getContext ( contextId : "webgl2" , options? : WebGLContextAttributes ) : WebGL2RenderingContext | null ;
getContext ( contextId : OffscreenRenderingContextId , options? : any ) : OffscreenRenderingContext | null ;
/ * *
* Returns a newly created ImageBitmap object with the image in the OffscreenCanvas object . The image in the OffscreenCanvas object is replaced with a new blank image .
* /
transferToImageBitmap ( ) : ImageBitmap ;
}
declare var OffscreenCanvas : {
prototype : OffscreenCanvas ;
new ( width : number , height : number ) : OffscreenCanvas ;
} ;
interface OffscreenCanvasRenderingContext2D extends CanvasState , CanvasTransform , CanvasCompositing , CanvasImageSmoothing , CanvasFillStrokeStyles , CanvasShadowStyles , CanvasFilters , CanvasRect , CanvasDrawPath , CanvasText , CanvasDrawImage , CanvasImageData , CanvasPathDrawingStyles , CanvasTextDrawingStyles , CanvasPath {
readonly canvas : OffscreenCanvas ;
commit ( ) : void ;
}
declare var OffscreenCanvasRenderingContext2D : {
prototype : OffscreenCanvasRenderingContext2D ;
new ( ) : OffscreenCanvasRenderingContext2D ;
} ;
/** This Canvas 2D API interface is used to declare a path that can then be used on a CanvasRenderingContext2D object. The path methods of the CanvasRenderingContext2D interface are also present on this interface, which gives you the convenience of being able to retain and replay your path whenever desired. */
2018-08-17 18:13:43 +02:00
interface Path2D extends CanvasPath {
2019-07-29 19:33:43 +02:00
/ * *
* Adds to the path the path given by the argument .
* /
2018-08-17 18:13:43 +02:00
addPath ( path : Path2D , transform? : DOMMatrix2DInit ) : void ;
}
declare var Path2D : {
prototype : Path2D ;
new ( path? : Path2D | string ) : Path2D ;
} ;
2018-06-11 05:05:12 +02:00
interface PerformanceEventMap {
"resourcetimingbufferfull" : Event ;
}
2019-07-29 19:33:43 +02:00
/** Provides access to performance-related information for the current page. It's part of the High Resolution Time API, but is enhanced by the Performance Timeline API, the Navigation Timing API, the User Timing API, and the Resource Timing API. */
2018-06-11 05:05:12 +02:00
interface Performance extends EventTarget {
onresourcetimingbufferfull : ( ( this : Performance , ev : Event ) = > any ) | null ;
2018-03-29 02:46:57 +02:00
readonly timeOrigin : number ;
2017-02-15 23:44:31 +01:00
clearMarks ( markName? : string ) : void ;
clearMeasures ( measureName? : string ) : void ;
clearResourceTimings ( ) : void ;
2018-06-11 05:05:12 +02:00
getEntries ( ) : PerformanceEntryList ;
getEntriesByName ( name : string , type ? : string ) : PerformanceEntryList ;
getEntriesByType ( type : string ) : PerformanceEntryList ;
2017-02-15 23:44:31 +01:00
mark ( markName : string ) : void ;
2018-06-11 05:05:12 +02:00
measure ( measureName : string , startMark? : string , endMark? : string ) : void ;
2017-02-15 23:44:31 +01:00
now ( ) : number ;
setResourceTimingBufferSize ( maxSize : number ) : void ;
toJSON ( ) : any ;
2018-06-11 05:05:12 +02:00
addEventListener < K extends keyof PerformanceEventMap > ( type : K , listener : ( this : Performance , ev : PerformanceEventMap [ K ] ) = > any , options? : boolean | AddEventListenerOptions ) : void ;
addEventListener ( type : string , listener : EventListenerOrEventListenerObject , options? : boolean | AddEventListenerOptions ) : void ;
removeEventListener < K extends keyof PerformanceEventMap > ( type : K , listener : ( this : Performance , ev : PerformanceEventMap [ K ] ) = > any , options? : boolean | EventListenerOptions ) : void ;
removeEventListener ( type : string , listener : EventListenerOrEventListenerObject , options? : boolean | EventListenerOptions ) : void ;
2017-02-15 23:44:31 +01:00
}
declare var Performance : {
prototype : Performance ;
new ( ) : Performance ;
2017-08-01 00:54:41 +02:00
} ;
2017-02-15 23:44:31 +01:00
2019-07-29 19:33:43 +02:00
/** Encapsulates a single performance metric that is part of the performance timeline. A performance entry can be directly created by making a performance mark or measure (for example by calling the mark() method) at an explicit point in an application. Performance entries are also created in indirect ways such as loading a resource (such as an image). */
2018-06-11 05:05:12 +02:00
interface PerformanceEntry {
readonly duration : number ;
readonly entryType : string ;
readonly name : string ;
readonly startTime : number ;
2017-02-15 23:44:31 +01:00
toJSON ( ) : any ;
}
2018-06-11 05:05:12 +02:00
declare var PerformanceEntry : {
prototype : PerformanceEntry ;
new ( ) : PerformanceEntry ;
2017-08-01 00:54:41 +02:00
} ;
2017-02-15 23:44:31 +01:00
2019-02-28 23:35:03 +01:00
/** PerformanceMark is an abstract interface for PerformanceEntry objects with an entryType of "mark". Entries of this type are created by calling performance.mark() to add a named DOMHighResTimeStamp (the mark) to the browser's performance timeline. */
2018-06-11 05:05:12 +02:00
interface PerformanceMark extends PerformanceEntry {
}
declare var PerformanceMark : {
prototype : PerformanceMark ;
new ( ) : PerformanceMark ;
} ;
2019-02-28 23:35:03 +01:00
/** PerformanceMeasure is an abstract interface for PerformanceEntry objects with an entryType of "measure". Entries of this type are created by calling performance.measure() to add a named DOMHighResTimeStamp (the measure) between two marks to the browser's performance timeline. */
2018-06-11 05:05:12 +02:00
interface PerformanceMeasure extends PerformanceEntry {
}
declare var PerformanceMeasure : {
prototype : PerformanceMeasure ;
new ( ) : PerformanceMeasure ;
} ;
interface PerformanceObserver {
disconnect ( ) : void ;
2019-07-29 19:33:43 +02:00
observe ( options? : PerformanceObserverInit ) : void ;
2018-06-11 05:05:12 +02:00
takeRecords ( ) : PerformanceEntryList ;
}
declare var PerformanceObserver : {
prototype : PerformanceObserver ;
new ( callback : PerformanceObserverCallback ) : PerformanceObserver ;
2019-07-29 19:33:43 +02:00
readonly supportedEntryTypes : ReadonlyArray < string > ;
2018-06-11 05:05:12 +02:00
} ;
interface PerformanceObserverEntryList {
getEntries ( ) : PerformanceEntryList ;
getEntriesByName ( name : string , type ? : string ) : PerformanceEntryList ;
getEntriesByType ( type : string ) : PerformanceEntryList ;
}
declare var PerformanceObserverEntryList : {
prototype : PerformanceObserverEntryList ;
new ( ) : PerformanceObserverEntryList ;
} ;
2019-07-29 19:33:43 +02:00
/** Enables retrieval and analysis of detailed network timing data regarding the loading of an application's resources. An application can use the timing metrics to determine, for example, the length of time it takes to fetch a specific resource, such as an XMLHttpRequest, <SVG>, image, or script. */
2018-06-11 05:05:12 +02:00
interface PerformanceResourceTiming extends PerformanceEntry {
2017-02-15 23:44:31 +01:00
readonly connectEnd : number ;
readonly connectStart : number ;
2018-06-11 05:05:12 +02:00
readonly decodedBodySize : number ;
2018-03-29 02:46:57 +02:00
readonly domainLookupEnd : number ;
readonly domainLookupStart : number ;
2018-06-11 05:05:12 +02:00
readonly encodedBodySize : number ;
2017-02-15 23:44:31 +01:00
readonly fetchStart : number ;
2018-06-11 05:05:12 +02:00
readonly initiatorType : string ;
readonly nextHopProtocol : string ;
2017-02-15 23:44:31 +01:00
readonly redirectEnd : number ;
readonly redirectStart : number ;
readonly requestStart : number ;
readonly responseEnd : number ;
readonly responseStart : number ;
2018-03-29 02:46:57 +02:00
readonly secureConnectionStart : number ;
2018-06-11 05:05:12 +02:00
readonly transferSize : number ;
readonly workerStart : number ;
2017-02-15 23:44:31 +01:00
toJSON ( ) : any ;
}
2018-06-11 05:05:12 +02:00
declare var PerformanceResourceTiming : {
prototype : PerformanceResourceTiming ;
new ( ) : PerformanceResourceTiming ;
2017-08-01 00:54:41 +02:00
} ;
2016-12-15 07:03:00 +01:00
2019-07-29 19:33:43 +02:00
interface PermissionStatusEventMap {
"change" : Event ;
}
interface PermissionStatus extends EventTarget {
onchange : ( ( this : PermissionStatus , ev : Event ) = > any ) | null ;
readonly state : PermissionState ;
addEventListener < K extends keyof PermissionStatusEventMap > ( type : K , listener : ( this : PermissionStatus , ev : PermissionStatusEventMap [ K ] ) = > any , options? : boolean | AddEventListenerOptions ) : void ;
addEventListener ( type : string , listener : EventListenerOrEventListenerObject , options? : boolean | AddEventListenerOptions ) : void ;
removeEventListener < K extends keyof PermissionStatusEventMap > ( type : K , listener : ( this : PermissionStatus , ev : PermissionStatusEventMap [ K ] ) = > any , options? : boolean | EventListenerOptions ) : void ;
removeEventListener ( type : string , listener : EventListenerOrEventListenerObject , options? : boolean | EventListenerOptions ) : void ;
}
declare var PermissionStatus : {
prototype : PermissionStatus ;
new ( ) : PermissionStatus ;
} ;
interface Permissions {
query ( permissionDesc : PermissionDescriptor | DevicePermissionDescriptor | MidiPermissionDescriptor | PushPermissionDescriptor ) : Promise < PermissionStatus > ;
}
declare var Permissions : {
prototype : Permissions ;
new ( ) : Permissions ;
} ;
/** Events measuring progress of an underlying process, like an HTTP request (for an XMLHttpRequest, or the loading of the underlying resource of an <img>, <audio>, <video>, <style> or <link>). */
interface ProgressEvent < T extends EventTarget = EventTarget > extends Event {
2016-12-15 07:03:00 +01:00
readonly lengthComputable : boolean ;
readonly loaded : number ;
2019-07-29 19:33:43 +02:00
readonly target : T | null ;
2016-12-15 07:03:00 +01:00
readonly total : number ;
}
declare var ProgressEvent : {
prototype : ProgressEvent ;
2018-06-11 05:05:12 +02:00
new ( type : string , eventInitDict? : ProgressEventInit ) : ProgressEvent ;
} ;
interface PromiseRejectionEvent extends Event {
2018-08-17 18:13:43 +02:00
readonly promise : Promise < any > ;
2018-06-11 05:05:12 +02:00
readonly reason : any ;
}
declare var PromiseRejectionEvent : {
prototype : PromiseRejectionEvent ;
new ( type : string , eventInitDict : PromiseRejectionEventInit ) : PromiseRejectionEvent ;
2018-03-29 02:46:57 +02:00
} ;
2019-07-29 19:33:43 +02:00
/** This Push API interface represents a push message that has been received. This event is sent to the global scope of a ServiceWorker. It contains the information sent from an application server to a PushSubscription. */
2018-03-29 02:46:57 +02:00
interface PushEvent extends ExtendableEvent {
readonly data : PushMessageData | null ;
}
declare var PushEvent : {
prototype : PushEvent ;
new ( type : string , eventInitDict? : PushEventInit ) : PushEvent ;
2017-08-01 00:54:41 +02:00
} ;
2016-12-15 07:03:00 +01:00
2019-07-29 19:33:43 +02:00
/** This Push API interface provides a way to receive notifications from third-party servers as well as request URLs for push notifications. */
2017-02-15 23:44:31 +01:00
interface PushManager {
2018-02-21 18:12:48 +01:00
getSubscription ( ) : Promise < PushSubscription | null > ;
2017-04-26 23:38:47 +02:00
permissionState ( options? : PushSubscriptionOptionsInit ) : Promise < PushPermissionState > ;
2017-02-15 23:44:31 +01:00
subscribe ( options? : PushSubscriptionOptionsInit ) : Promise < PushSubscription > ;
}
declare var PushManager : {
prototype : PushManager ;
new ( ) : PushManager ;
2018-06-11 05:05:12 +02:00
readonly supportedContentEncodings : ReadonlyArray < string > ;
2017-08-01 00:54:41 +02:00
} ;
2017-02-15 23:44:31 +01:00
2019-07-29 19:33:43 +02:00
/** This Push API interface provides methods which let you retrieve the push data sent by a server in various formats. */
2018-03-29 02:46:57 +02:00
interface PushMessageData {
arrayBuffer ( ) : ArrayBuffer ;
blob ( ) : Blob ;
json ( ) : any ;
text ( ) : string ;
}
declare var PushMessageData : {
prototype : PushMessageData ;
new ( ) : PushMessageData ;
} ;
2019-07-29 19:33:43 +02:00
/** This Push API interface provides a subcription's URL endpoint and allows unsubscription from a push service. */
2017-02-15 23:44:31 +01:00
interface PushSubscription {
2018-03-29 02:46:57 +02:00
readonly endpoint : string ;
readonly expirationTime : number | null ;
2017-02-15 23:44:31 +01:00
readonly options : PushSubscriptionOptions ;
2017-04-26 23:38:47 +02:00
getKey ( name : PushEncryptionKeyName ) : ArrayBuffer | null ;
2018-06-11 05:05:12 +02:00
toJSON ( ) : PushSubscriptionJSON ;
2017-02-15 23:44:31 +01:00
unsubscribe ( ) : Promise < boolean > ;
}
declare var PushSubscription : {
prototype : PushSubscription ;
new ( ) : PushSubscription ;
2017-08-01 00:54:41 +02:00
} ;
2017-02-15 23:44:31 +01:00
2018-03-29 02:46:57 +02:00
interface PushSubscriptionChangeEvent extends ExtendableEvent {
readonly newSubscription : PushSubscription | null ;
readonly oldSubscription : PushSubscription | null ;
}
declare var PushSubscriptionChangeEvent : {
prototype : PushSubscriptionChangeEvent ;
new ( type : string , eventInitDict? : PushSubscriptionChangeInit ) : PushSubscriptionChangeEvent ;
} ;
2017-02-15 23:44:31 +01:00
interface PushSubscriptionOptions {
readonly applicationServerKey : ArrayBuffer | null ;
readonly userVisibleOnly : boolean ;
}
declare var PushSubscriptionOptions : {
prototype : PushSubscriptionOptions ;
new ( ) : PushSubscriptionOptions ;
2017-08-01 00:54:41 +02:00
} ;
2017-02-15 23:44:31 +01:00
2018-11-13 01:27:38 +01:00
interface ReadableByteStreamController {
readonly byobRequest : ReadableStreamBYOBRequest | undefined ;
readonly desiredSize : number | null ;
close ( ) : void ;
enqueue ( chunk : ArrayBufferView ) : void ;
error ( error? : any ) : void ;
}
2019-07-29 19:33:43 +02:00
/** This Streams API interface represents a readable stream of byte data. The Fetch API offers a concrete instance of a ReadableStream through the body property of a Response object. */
2018-11-13 01:27:38 +01:00
interface ReadableStream < R = any > {
2017-02-15 23:44:31 +01:00
readonly locked : boolean ;
2018-11-13 01:27:38 +01:00
cancel ( reason? : any ) : Promise < void > ;
getReader ( options : { mode : "byob" } ) : ReadableStreamBYOBReader ;
getReader ( ) : ReadableStreamDefaultReader < R > ;
pipeThrough < T > ( { writable , readable } : { writable : WritableStream < R > , readable : ReadableStream < T > } , options? : PipeOptions ) : ReadableStream < T > ;
pipeTo ( dest : WritableStream < R > , options? : PipeOptions ) : Promise < void > ;
tee ( ) : [ ReadableStream < R > , ReadableStream < R > ] ;
2017-02-15 23:44:31 +01:00
}
declare var ReadableStream : {
prototype : ReadableStream ;
2018-11-13 01:27:38 +01:00
new ( underlyingSource : UnderlyingByteSource , strategy ? : { highWaterMark? : number , size? : undefined } ) : ReadableStream < Uint8Array > ;
new < R = any > ( underlyingSource? : UnderlyingSource < R > , strategy? : QueuingStrategy < R > ) : ReadableStream < R > ;
} ;
interface ReadableStreamBYOBReader {
readonly closed : Promise < void > ;
cancel ( reason? : any ) : Promise < void > ;
read < T extends ArrayBufferView > ( view : T ) : Promise < ReadableStreamReadResult < T > > ;
releaseLock ( ) : void ;
}
interface ReadableStreamBYOBRequest {
readonly view : ArrayBufferView ;
respond ( bytesWritten : number ) : void ;
respondWithNewView ( view : ArrayBufferView ) : void ;
}
interface ReadableStreamDefaultController < R = any > {
readonly desiredSize : number | null ;
close ( ) : void ;
enqueue ( chunk : R ) : void ;
error ( error? : any ) : void ;
}
interface ReadableStreamDefaultReader < R = any > {
readonly closed : Promise < void > ;
cancel ( reason? : any ) : Promise < void > ;
read ( ) : Promise < ReadableStreamReadResult < R > > ;
releaseLock ( ) : void ;
}
interface ReadableStreamReadResult < T > {
done : boolean ;
value : T ;
}
interface ReadableStreamReader < R = any > {
2017-02-15 23:44:31 +01:00
cancel ( ) : Promise < void > ;
2018-11-13 01:27:38 +01:00
read ( ) : Promise < ReadableStreamReadResult < R > > ;
2017-02-15 23:44:31 +01:00
releaseLock ( ) : void ;
}
declare var ReadableStreamReader : {
prototype : ReadableStreamReader ;
new ( ) : ReadableStreamReader ;
2017-08-01 00:54:41 +02:00
} ;
2017-02-15 23:44:31 +01:00
2019-07-29 19:33:43 +02:00
/** This Fetch API interface represents a resource request. */
2018-03-29 02:46:57 +02:00
interface Request extends Body {
2018-06-11 05:05:12 +02:00
/ * *
2019-07-29 19:33:43 +02:00
* Returns the cache mode associated with request , which is a string indicating how the request will interact with the browser ' s cache when fetching .
2018-06-11 05:05:12 +02:00
* /
2017-04-26 23:38:47 +02:00
readonly cache : RequestCache ;
2018-06-11 05:05:12 +02:00
/ * *
2019-07-29 19:33:43 +02:00
* Returns the credentials mode associated with request , which is a string indicating whether credentials will be sent with the request always , never , or only when sent to a same - origin URL .
2018-06-11 05:05:12 +02:00
* /
2017-04-26 23:38:47 +02:00
readonly credentials : RequestCredentials ;
2018-06-11 05:05:12 +02:00
/ * *
2019-07-29 19:33:43 +02:00
* Returns the kind of resource requested by request , e . g . , "document" or "script" .
2018-06-11 05:05:12 +02:00
* /
2017-04-26 23:38:47 +02:00
readonly destination : RequestDestination ;
2018-06-11 05:05:12 +02:00
/ * *
2019-07-29 19:33:43 +02:00
* Returns a Headers object consisting of the headers associated with request . Note that headers added in the network layer by the user agent will not be accounted for in this object , e . g . , the "Host" header .
2018-06-11 05:05:12 +02:00
* /
2017-02-15 23:44:31 +01:00
readonly headers : Headers ;
2018-06-11 05:05:12 +02:00
/ * *
2019-07-29 19:33:43 +02:00
* Returns request ' s subresource integrity metadata , which is a cryptographic hash of the resource being fetched . Its value consists of multiple hashes separated by whitespace . [ SRI ]
2018-06-11 05:05:12 +02:00
* /
2017-02-15 23:44:31 +01:00
readonly integrity : string ;
2018-06-11 05:05:12 +02:00
/ * *
2019-07-29 19:33:43 +02:00
* Returns a boolean indicating whether or not request is for a history navigation ( a . k . a . back - foward navigation ) .
2018-06-11 05:05:12 +02:00
* /
readonly isHistoryNavigation : boolean ;
/ * *
* Returns a boolean indicating whether or not request is for a reload navigation .
* /
readonly isReloadNavigation : boolean ;
/ * *
2019-07-29 19:33:43 +02:00
* Returns a boolean indicating whether or not request can outlive the global in which it was created .
2018-06-11 05:05:12 +02:00
* /
2017-02-15 23:44:31 +01:00
readonly keepalive : boolean ;
2018-06-11 05:05:12 +02:00
/ * *
* Returns request ' s HTTP method , which is "GET" by default .
* /
2017-02-15 23:44:31 +01:00
readonly method : string ;
2018-06-11 05:05:12 +02:00
/ * *
2019-07-29 19:33:43 +02:00
* Returns the mode associated with request , which is a string indicating whether the request will use CORS , or will be restricted to same - origin URLs .
2018-06-11 05:05:12 +02:00
* /
2017-04-26 23:38:47 +02:00
readonly mode : RequestMode ;
2018-06-11 05:05:12 +02:00
/ * *
2019-07-29 19:33:43 +02:00
* Returns the redirect mode associated with request , which is a string indicating how redirects for the request will be handled during fetching . A request will follow redirects by default .
2018-06-11 05:05:12 +02:00
* /
2017-04-26 23:38:47 +02:00
readonly redirect : RequestRedirect ;
2018-06-11 05:05:12 +02:00
/ * *
2019-07-29 19:33:43 +02:00
* Returns the referrer of request . Its value can be a same - origin URL if explicitly set in init , the empty string to indicate no referrer , and "about:client" when defaulting to the global ' s default . This is used during fetching to determine the value of the ` Referer ` header of the request being made .
2018-06-11 05:05:12 +02:00
* /
2017-02-15 23:44:31 +01:00
readonly referrer : string ;
2018-06-11 05:05:12 +02:00
/ * *
2019-07-29 19:33:43 +02:00
* Returns the referrer policy associated with request . This is used during fetching to compute the value of the request ' s referrer .
2018-06-11 05:05:12 +02:00
* /
2017-04-26 23:38:47 +02:00
readonly referrerPolicy : ReferrerPolicy ;
2018-06-11 05:05:12 +02:00
/ * *
2019-07-29 19:33:43 +02:00
* Returns the signal associated with request , which is an AbortSignal object indicating whether or not request has been aborted , and its abort event handler .
2018-06-11 05:05:12 +02:00
* /
2018-08-17 18:13:43 +02:00
readonly signal : AbortSignal ;
2018-06-11 05:05:12 +02:00
/ * *
* Returns the URL of request as a string .
* /
2017-02-15 23:44:31 +01:00
readonly url : string ;
clone ( ) : Request ;
}
declare var Request : {
prototype : Request ;
2018-06-11 05:05:12 +02:00
new ( input : RequestInfo , init? : RequestInit ) : Request ;
2017-08-01 00:54:41 +02:00
} ;
2017-02-15 23:44:31 +01:00
2019-07-29 19:33:43 +02:00
/** This Fetch API interface represents the response to a request. */
2018-03-29 02:46:57 +02:00
interface Response extends Body {
2017-02-15 23:44:31 +01:00
readonly headers : Headers ;
readonly ok : boolean ;
2018-03-29 02:46:57 +02:00
readonly redirected : boolean ;
2017-02-15 23:44:31 +01:00
readonly status : number ;
readonly statusText : string ;
2018-06-11 05:05:12 +02:00
readonly trailer : Promise < Headers > ;
2017-04-26 23:38:47 +02:00
readonly type : ResponseType ;
2017-02-15 23:44:31 +01:00
readonly url : string ;
clone ( ) : Response ;
}
declare var Response : {
prototype : Response ;
2018-06-11 05:05:12 +02:00
new ( body? : BodyInit | null , init? : ResponseInit ) : Response ;
2018-03-29 02:46:57 +02:00
error ( ) : Response ;
redirect ( url : string , status? : number ) : Response ;
2017-08-01 00:54:41 +02:00
} ;
2017-02-15 23:44:31 +01:00
interface ServiceWorkerEventMap extends AbstractWorkerEventMap {
"statechange" : Event ;
}
2019-07-29 19:33:43 +02:00
/** This ServiceWorker API interface provides a reference to a service worker. Multiple browsing contexts (e.g. pages, workers, etc.) can be associated with the same service worker, each through a unique ServiceWorker object. */
2017-02-15 23:44:31 +01:00
interface ServiceWorker extends EventTarget , AbstractWorker {
2018-03-29 02:46:57 +02:00
onstatechange : ( ( this : ServiceWorker , ev : Event ) = > any ) | null ;
readonly scriptURL : string ;
2017-04-26 23:38:47 +02:00
readonly state : ServiceWorkerState ;
2019-07-29 19:33:43 +02:00
postMessage ( message : any , transfer : Transferable [ ] ) : void ;
postMessage ( message : any , options? : PostMessageOptions ) : void ;
2017-12-02 20:16:59 +01:00
addEventListener < K extends keyof ServiceWorkerEventMap > ( type : K , listener : ( this : ServiceWorker , ev : ServiceWorkerEventMap [ K ] ) = > any , options? : boolean | AddEventListenerOptions ) : void ;
addEventListener ( type : string , listener : EventListenerOrEventListenerObject , options? : boolean | AddEventListenerOptions ) : void ;
removeEventListener < K extends keyof ServiceWorkerEventMap > ( type : K , listener : ( this : ServiceWorker , ev : ServiceWorkerEventMap [ K ] ) = > any , options? : boolean | EventListenerOptions ) : void ;
removeEventListener ( type : string , listener : EventListenerOrEventListenerObject , options? : boolean | EventListenerOptions ) : void ;
2017-02-15 23:44:31 +01:00
}
declare var ServiceWorker : {
prototype : ServiceWorker ;
new ( ) : ServiceWorker ;
2017-08-01 00:54:41 +02:00
} ;
2017-02-15 23:44:31 +01:00
2018-06-11 05:05:12 +02:00
interface ServiceWorkerContainerEventMap {
"controllerchange" : Event ;
"message" : MessageEvent ;
"messageerror" : MessageEvent ;
}
2019-02-28 23:35:03 +01:00
/** The ServiceWorkerContainer interface of the ServiceWorker API provides an object representing the service worker as an overall unit in the network ecosystem, including facilities to register, unregister and update service workers, and access the state of service workers and their registrations. */
2018-06-11 05:05:12 +02:00
interface ServiceWorkerContainer extends EventTarget {
readonly controller : ServiceWorker | null ;
oncontrollerchange : ( ( this : ServiceWorkerContainer , ev : Event ) = > any ) | null ;
onmessage : ( ( this : ServiceWorkerContainer , ev : MessageEvent ) = > any ) | null ;
onmessageerror : ( ( this : ServiceWorkerContainer , ev : MessageEvent ) = > any ) | null ;
readonly ready : Promise < ServiceWorkerRegistration > ;
getRegistration ( clientURL? : string ) : Promise < ServiceWorkerRegistration | undefined > ;
getRegistrations ( ) : Promise < ReadonlyArray < ServiceWorkerRegistration > > ;
register ( scriptURL : string , options? : RegistrationOptions ) : Promise < ServiceWorkerRegistration > ;
startMessages ( ) : void ;
addEventListener < K extends keyof ServiceWorkerContainerEventMap > ( type : K , listener : ( this : ServiceWorkerContainer , ev : ServiceWorkerContainerEventMap [ K ] ) = > any , options? : boolean | AddEventListenerOptions ) : void ;
addEventListener ( type : string , listener : EventListenerOrEventListenerObject , options? : boolean | AddEventListenerOptions ) : void ;
removeEventListener < K extends keyof ServiceWorkerContainerEventMap > ( type : K , listener : ( this : ServiceWorkerContainer , ev : ServiceWorkerContainerEventMap [ K ] ) = > any , options? : boolean | EventListenerOptions ) : void ;
removeEventListener ( type : string , listener : EventListenerOrEventListenerObject , options? : boolean | EventListenerOptions ) : void ;
}
declare var ServiceWorkerContainer : {
prototype : ServiceWorkerContainer ;
new ( ) : ServiceWorkerContainer ;
} ;
2018-03-29 02:46:57 +02:00
interface ServiceWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {
"activate" : ExtendableEvent ;
"fetch" : FetchEvent ;
"install" : ExtendableEvent ;
"message" : ExtendableMessageEvent ;
"messageerror" : MessageEvent ;
"notificationclick" : NotificationEvent ;
"notificationclose" : NotificationEvent ;
"push" : PushEvent ;
"pushsubscriptionchange" : PushSubscriptionChangeEvent ;
"sync" : SyncEvent ;
}
2019-07-29 19:33:43 +02:00
/** This ServiceWorker API interface represents the global execution context of a service worker. */
2018-03-29 02:46:57 +02:00
interface ServiceWorkerGlobalScope extends WorkerGlobalScope {
readonly clients : Clients ;
onactivate : ( ( this : ServiceWorkerGlobalScope , ev : ExtendableEvent ) = > any ) | null ;
onfetch : ( ( this : ServiceWorkerGlobalScope , ev : FetchEvent ) = > any ) | null ;
oninstall : ( ( this : ServiceWorkerGlobalScope , ev : ExtendableEvent ) = > any ) | null ;
onmessage : ( ( this : ServiceWorkerGlobalScope , ev : ExtendableMessageEvent ) = > any ) | null ;
onmessageerror : ( ( this : ServiceWorkerGlobalScope , ev : MessageEvent ) = > any ) | null ;
onnotificationclick : ( ( this : ServiceWorkerGlobalScope , ev : NotificationEvent ) = > any ) | null ;
onnotificationclose : ( ( this : ServiceWorkerGlobalScope , ev : NotificationEvent ) = > any ) | null ;
onpush : ( ( this : ServiceWorkerGlobalScope , ev : PushEvent ) = > any ) | null ;
onpushsubscriptionchange : ( ( this : ServiceWorkerGlobalScope , ev : PushSubscriptionChangeEvent ) = > any ) | null ;
onsync : ( ( this : ServiceWorkerGlobalScope , ev : SyncEvent ) = > any ) | null ;
readonly registration : ServiceWorkerRegistration ;
skipWaiting ( ) : Promise < void > ;
addEventListener < K extends keyof ServiceWorkerGlobalScopeEventMap > ( type : K , listener : ( this : ServiceWorkerGlobalScope , ev : ServiceWorkerGlobalScopeEventMap [ K ] ) = > any , options? : boolean | AddEventListenerOptions ) : void ;
addEventListener ( type : string , listener : EventListenerOrEventListenerObject , options? : boolean | AddEventListenerOptions ) : void ;
removeEventListener < K extends keyof ServiceWorkerGlobalScopeEventMap > ( type : K , listener : ( this : ServiceWorkerGlobalScope , ev : ServiceWorkerGlobalScopeEventMap [ K ] ) = > any , options? : boolean | EventListenerOptions ) : void ;
removeEventListener ( type : string , listener : EventListenerOrEventListenerObject , options? : boolean | EventListenerOptions ) : void ;
}
declare var ServiceWorkerGlobalScope : {
prototype : ServiceWorkerGlobalScope ;
new ( ) : ServiceWorkerGlobalScope ;
} ;
2017-02-15 23:44:31 +01:00
interface ServiceWorkerRegistrationEventMap {
"updatefound" : Event ;
}
2019-07-29 19:33:43 +02:00
/** This ServiceWorker API interface represents the service worker registration. You register a service worker to control one or more pages that share the same origin. */
2017-02-15 23:44:31 +01:00
interface ServiceWorkerRegistration extends EventTarget {
readonly active : ServiceWorker | null ;
readonly installing : ServiceWorker | null ;
2018-06-11 05:05:12 +02:00
readonly navigationPreload : NavigationPreloadManager ;
2018-03-29 02:46:57 +02:00
onupdatefound : ( ( this : ServiceWorkerRegistration , ev : Event ) = > any ) | null ;
2017-02-15 23:44:31 +01:00
readonly pushManager : PushManager ;
2018-03-29 02:46:57 +02:00
readonly scope : string ;
2017-02-15 23:44:31 +01:00
readonly sync : SyncManager ;
2018-06-11 05:05:12 +02:00
readonly updateViaCache : ServiceWorkerUpdateViaCache ;
2017-02-15 23:44:31 +01:00
readonly waiting : ServiceWorker | null ;
2017-09-26 22:51:27 +02:00
getNotifications ( filter? : GetNotificationOptions ) : Promise < Notification [ ] > ;
2017-02-15 23:44:31 +01:00
showNotification ( title : string , options? : NotificationOptions ) : Promise < void > ;
unregister ( ) : Promise < boolean > ;
update ( ) : Promise < void > ;
2017-12-02 20:16:59 +01:00
addEventListener < K extends keyof ServiceWorkerRegistrationEventMap > ( type : K , listener : ( this : ServiceWorkerRegistration , ev : ServiceWorkerRegistrationEventMap [ K ] ) = > any , options? : boolean | AddEventListenerOptions ) : void ;
addEventListener ( type : string , listener : EventListenerOrEventListenerObject , options? : boolean | AddEventListenerOptions ) : void ;
removeEventListener < K extends keyof ServiceWorkerRegistrationEventMap > ( type : K , listener : ( this : ServiceWorkerRegistration , ev : ServiceWorkerRegistrationEventMap [ K ] ) = > any , options? : boolean | EventListenerOptions ) : void ;
removeEventListener ( type : string , listener : EventListenerOrEventListenerObject , options? : boolean | EventListenerOptions ) : void ;
2017-02-15 23:44:31 +01:00
}
declare var ServiceWorkerRegistration : {
prototype : ServiceWorkerRegistration ;
new ( ) : ServiceWorkerRegistration ;
2017-08-01 00:54:41 +02:00
} ;
2017-02-15 23:44:31 +01:00
2018-06-11 05:05:12 +02:00
interface StorageManager {
estimate ( ) : Promise < StorageEstimate > ;
persisted ( ) : Promise < boolean > ;
}
declare var StorageManager : {
prototype : StorageManager ;
new ( ) : StorageManager ;
} ;
2019-07-29 19:33:43 +02:00
/** This Web Crypto API interface provides a number of low-level cryptographic functions. It is accessed via the Crypto.subtle properties available in a window context (via Window.crypto). */
2018-08-17 18:13:43 +02:00
interface SubtleCrypto {
decrypt ( algorithm : string | RsaOaepParams | AesCtrParams | AesCbcParams | AesCmacParams | AesGcmParams | AesCfbParams , key : CryptoKey , data : Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer ) : PromiseLike < ArrayBuffer > ;
deriveBits ( algorithm : string | EcdhKeyDeriveParams | DhKeyDeriveParams | ConcatParams | HkdfCtrParams | Pbkdf2Params , baseKey : CryptoKey , length : number ) : PromiseLike < ArrayBuffer > ;
deriveKey ( algorithm : string | EcdhKeyDeriveParams | DhKeyDeriveParams | ConcatParams | HkdfCtrParams | Pbkdf2Params , baseKey : CryptoKey , derivedKeyType : string | AesDerivedKeyParams | HmacImportParams | ConcatParams | HkdfCtrParams | Pbkdf2Params , extractable : boolean , keyUsages : string [ ] ) : PromiseLike < CryptoKey > ;
digest ( algorithm : string | Algorithm , data : Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer ) : PromiseLike < ArrayBuffer > ;
encrypt ( algorithm : string | RsaOaepParams | AesCtrParams | AesCbcParams | AesCmacParams | AesGcmParams | AesCfbParams , key : CryptoKey , data : Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer ) : PromiseLike < ArrayBuffer > ;
exportKey ( format : "jwk" , key : CryptoKey ) : PromiseLike < JsonWebKey > ;
exportKey ( format : "raw" | "pkcs8" | "spki" , key : CryptoKey ) : PromiseLike < ArrayBuffer > ;
exportKey ( format : string , key : CryptoKey ) : PromiseLike < JsonWebKey | ArrayBuffer > ;
generateKey ( algorithm : string , extractable : boolean , keyUsages : string [ ] ) : PromiseLike < CryptoKeyPair | CryptoKey > ;
generateKey ( algorithm : RsaHashedKeyGenParams | EcKeyGenParams | DhKeyGenParams , extractable : boolean , keyUsages : string [ ] ) : PromiseLike < CryptoKeyPair > ;
generateKey ( algorithm : AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params , extractable : boolean , keyUsages : string [ ] ) : PromiseLike < CryptoKey > ;
importKey ( format : "jwk" , keyData : JsonWebKey , algorithm : string | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | DhImportKeyParams | AesKeyAlgorithm , extractable : boolean , keyUsages : string [ ] ) : PromiseLike < CryptoKey > ;
importKey ( format : "raw" | "pkcs8" | "spki" , keyData : Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer , algorithm : string | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | DhImportKeyParams | AesKeyAlgorithm , extractable : boolean , keyUsages : string [ ] ) : PromiseLike < CryptoKey > ;
importKey ( format : string , keyData : JsonWebKey | Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer , algorithm : string | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | DhImportKeyParams | AesKeyAlgorithm , extractable : boolean , keyUsages : string [ ] ) : PromiseLike < CryptoKey > ;
sign ( algorithm : string | RsaPssParams | EcdsaParams | AesCmacParams , key : CryptoKey , data : Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer ) : PromiseLike < ArrayBuffer > ;
unwrapKey ( format : string , wrappedKey : Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer , unwrappingKey : CryptoKey , unwrapAlgorithm : string | Algorithm , unwrappedKeyAlgorithm : string | Algorithm , extractable : boolean , keyUsages : string [ ] ) : PromiseLike < CryptoKey > ;
verify ( algorithm : string | RsaPssParams | EcdsaParams | AesCmacParams , key : CryptoKey , signature : Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer , data : Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer ) : PromiseLike < boolean > ;
wrapKey ( format : string , key : CryptoKey , wrappingKey : CryptoKey , wrapAlgorithm : string | Algorithm ) : PromiseLike < ArrayBuffer > ;
}
declare var SubtleCrypto : {
prototype : SubtleCrypto ;
new ( ) : SubtleCrypto ;
} ;
2019-07-29 19:33:43 +02:00
/** A sync action that is dispatched on the ServiceWorkerGlobalScope of a ServiceWorker. */
2018-03-29 02:46:57 +02:00
interface SyncEvent extends ExtendableEvent {
readonly lastChance : boolean ;
readonly tag : string ;
}
declare var SyncEvent : {
prototype : SyncEvent ;
new ( type : string , init : SyncEventInit ) : SyncEvent ;
} ;
2019-07-29 19:33:43 +02:00
/** This ServiceWorker API interface provides an interface for registering and listing sync registrations. */
2017-02-15 23:44:31 +01:00
interface SyncManager {
2017-09-26 22:51:27 +02:00
getTags ( ) : Promise < string [ ] > ;
2017-02-15 23:44:31 +01:00
register ( tag : string ) : Promise < void > ;
}
declare var SyncManager : {
prototype : SyncManager ;
new ( ) : SyncManager ;
2017-08-01 00:54:41 +02:00
} ;
2017-02-15 23:44:31 +01:00
2019-07-29 19:33:43 +02:00
/** A decoder for a specific method, that is a specific character encoding, like utf-8, iso-8859-2, koi8, cp1261, gbk, etc. A decoder takes a stream of bytes as input and emits a stream of code points. For a more scalable, non-native library, see StringView – a C-like representation of strings based on typed arrays. */
interface TextDecoder extends TextDecoderCommon {
2018-06-11 05:05:12 +02:00
/ * *
2019-07-29 19:33:43 +02:00
* Returns the result of running encoding 's decoder. The method can be invoked zero or more times with options' s stream set to true , and then once without options 's stream (or set to false), to process a fragmented stream. If the invocation without options' s stream ( or set to false ) has no input , it ' s clearest to omit both arguments .
*
* ` ` `
2018-06-11 05:05:12 +02:00
* var string = "" , decoder = new TextDecoder ( encoding ) , buffer ;
* while ( buffer = next_chunk ( ) ) {
2019-07-29 19:33:43 +02:00
* string += decoder . decode ( buffer , { stream :true } ) ;
2018-06-11 05:05:12 +02:00
* }
* string += decoder . decode ( ) ; // end-of-stream
2019-07-29 19:33:43 +02:00
* ` ` `
*
2018-06-11 05:05:12 +02:00
* If the error mode is "fatal" and encoding ' s decoder returns error , throws a TypeError .
* /
decode ( input? : BufferSource , options? : TextDecodeOptions ) : string ;
}
declare var TextDecoder : {
prototype : TextDecoder ;
new ( label? : string , options? : TextDecoderOptions ) : TextDecoder ;
} ;
2019-07-29 19:33:43 +02:00
interface TextDecoderCommon {
2018-06-11 05:05:12 +02:00
/ * *
2019-07-29 19:33:43 +02:00
* Returns encoding ' s name , lowercased .
2018-06-11 05:05:12 +02:00
* /
readonly encoding : string ;
2019-07-29 19:33:43 +02:00
/ * *
* Returns true if error mode is "fatal" , and false otherwise .
* /
readonly fatal : boolean ;
/ * *
* Returns true if ignore BOM flag is set , and false otherwise .
* /
readonly ignoreBOM : boolean ;
}
interface TextDecoderStream extends TextDecoderCommon , GenericTransformStream {
}
declare var TextDecoderStream : {
prototype : TextDecoderStream ;
new ( label? : string , options? : TextDecoderOptions ) : TextDecoderStream ;
} ;
/** TextEncoder takes a stream of code points as input and emits a stream of bytes. For a more scalable, non-native library, see StringView – a C-like representation of strings based on typed arrays. */
interface TextEncoder extends TextEncoderCommon {
2018-06-11 05:05:12 +02:00
/ * *
* Returns the result of running UTF - 8 ' s encoder .
* /
encode ( input? : string ) : Uint8Array ;
2019-07-29 19:33:43 +02:00
/ * *
* Runs the UTF - 8 encoder on source , stores the result of that operation into destination , and returns the progress made as a dictionary whereby read is the number of converted code units of source and written is the number of bytes modified in destination .
* /
encodeInto ( source : string , destination : Uint8Array ) : TextEncoderEncodeIntoResult ;
2018-06-11 05:05:12 +02:00
}
declare var TextEncoder : {
prototype : TextEncoder ;
new ( ) : TextEncoder ;
} ;
2019-07-29 19:33:43 +02:00
interface TextEncoderCommon {
/ * *
* Returns "utf-8" .
* /
readonly encoding : string ;
}
interface TextEncoderStream extends TextEncoderCommon , GenericTransformStream {
}
declare var TextEncoderStream : {
prototype : TextEncoderStream ;
new ( ) : TextEncoderStream ;
} ;
/** The dimensions of a piece of text in the canvas, as created by the CanvasRenderingContext2D.measureText() method. */
2018-11-13 01:27:38 +01:00
interface TextMetrics {
2019-07-29 19:33:43 +02:00
/ * *
* Returns the measurement described below .
* /
2018-11-13 01:27:38 +01:00
readonly actualBoundingBoxAscent : number ;
2019-07-29 19:33:43 +02:00
/ * *
* Returns the measurement described below .
* /
2018-11-13 01:27:38 +01:00
readonly actualBoundingBoxDescent : number ;
2019-07-29 19:33:43 +02:00
/ * *
* Returns the measurement described below .
* /
2018-11-13 01:27:38 +01:00
readonly actualBoundingBoxLeft : number ;
2019-07-29 19:33:43 +02:00
/ * *
* Returns the measurement described below .
* /
2018-11-13 01:27:38 +01:00
readonly actualBoundingBoxRight : number ;
2019-07-29 19:33:43 +02:00
/ * *
* Returns the measurement described below .
* /
2018-11-13 01:27:38 +01:00
readonly alphabeticBaseline : number ;
2019-07-29 19:33:43 +02:00
/ * *
* Returns the measurement described below .
* /
2018-11-13 01:27:38 +01:00
readonly emHeightAscent : number ;
2019-07-29 19:33:43 +02:00
/ * *
* Returns the measurement described below .
* /
2018-11-13 01:27:38 +01:00
readonly emHeightDescent : number ;
2019-07-29 19:33:43 +02:00
/ * *
* Returns the measurement described below .
* /
2018-11-13 01:27:38 +01:00
readonly fontBoundingBoxAscent : number ;
2019-07-29 19:33:43 +02:00
/ * *
* Returns the measurement described below .
* /
2018-11-13 01:27:38 +01:00
readonly fontBoundingBoxDescent : number ;
2019-07-29 19:33:43 +02:00
/ * *
* Returns the measurement described below .
* /
2018-11-13 01:27:38 +01:00
readonly hangingBaseline : number ;
/ * *
* Returns the measurement described below .
* /
readonly ideographicBaseline : number ;
2019-07-29 19:33:43 +02:00
/ * *
* Returns the measurement described below .
* /
2018-11-13 01:27:38 +01:00
readonly width : number ;
}
declare var TextMetrics : {
prototype : TextMetrics ;
new ( ) : TextMetrics ;
} ;
interface TransformStream < I = any , O = any > {
readonly readable : ReadableStream < O > ;
readonly writable : WritableStream < I > ;
}
declare var TransformStream : {
prototype : TransformStream ;
new < I = any , O = any > ( transformer? : Transformer < I , O > , writableStrategy? : QueuingStrategy < I > , readableStrategy? : QueuingStrategy < O > ) : TransformStream < I , O > ;
} ;
interface TransformStreamDefaultController < O = any > {
readonly desiredSize : number | null ;
enqueue ( chunk : O ) : void ;
error ( reason? : any ) : void ;
terminate ( ) : void ;
}
2019-02-28 23:35:03 +01:00
/** The URL interface represents an object providing static methods used for creating object URLs. */
2017-04-26 23:38:47 +02:00
interface URL {
hash : string ;
host : string ;
hostname : string ;
href : string ;
readonly origin : string ;
password : string ;
pathname : string ;
port : string ;
protocol : string ;
search : string ;
readonly searchParams : URLSearchParams ;
2018-03-29 02:46:57 +02:00
username : string ;
2018-06-11 05:05:12 +02:00
toJSON ( ) : string ;
2017-04-26 23:38:47 +02:00
}
declare var URL : {
prototype : URL ;
2018-02-21 18:12:48 +01:00
new ( url : string , base? : string | URL ) : URL ;
2018-06-11 05:05:12 +02:00
createObjectURL ( object : any ) : string ;
2017-04-26 23:38:47 +02:00
revokeObjectURL ( url : string ) : void ;
2017-08-01 00:54:41 +02:00
} ;
2017-04-26 23:38:47 +02:00
2018-03-29 02:46:57 +02:00
interface URLSearchParams {
/ * *
* Appends a specified key / value pair as a new search parameter .
* /
append ( name : string , value : string ) : void ;
/ * *
* Deletes the given search parameter , and its associated value , from the list of all search parameters .
* /
delete ( name : string ) : void ;
/ * *
* Returns the first value associated to the given search parameter .
* /
get ( name : string ) : string | null ;
/ * *
* Returns all the values association with a given search parameter .
* /
getAll ( name : string ) : string [ ] ;
/ * *
* Returns a Boolean indicating if such a search parameter exists .
* /
has ( name : string ) : boolean ;
/ * *
* Sets the value associated to a given search parameter to the given value . If there were several values , delete the others .
* /
set ( name : string , value : string ) : void ;
2018-06-11 05:05:12 +02:00
sort ( ) : void ;
forEach ( callbackfn : ( value : string , key : string , parent : URLSearchParams ) = > void , thisArg? : any ) : void ;
2018-03-29 02:46:57 +02:00
}
declare var URLSearchParams : {
prototype : URLSearchParams ;
2018-06-11 05:05:12 +02:00
new ( init? : string [ ] [ ] | Record < string , string > | string | URLSearchParams ) : URLSearchParams ;
2018-03-29 02:46:57 +02:00
} ;
2018-11-13 01:27:38 +01:00
interface WEBGL_color_buffer_float {
readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT : GLenum ;
readonly RGBA32F_EXT : GLenum ;
readonly UNSIGNED_NORMALIZED_EXT : GLenum ;
}
interface WEBGL_compressed_texture_astc {
getSupportedProfiles ( ) : string [ ] ;
readonly COMPRESSED_RGBA_ASTC_10x10_KHR : GLenum ;
readonly COMPRESSED_RGBA_ASTC_10x5_KHR : GLenum ;
readonly COMPRESSED_RGBA_ASTC_10x6_KHR : GLenum ;
readonly COMPRESSED_RGBA_ASTC_10x8_KHR : GLenum ;
readonly COMPRESSED_RGBA_ASTC_12x10_KHR : GLenum ;
readonly COMPRESSED_RGBA_ASTC_12x12_KHR : GLenum ;
readonly COMPRESSED_RGBA_ASTC_4x4_KHR : GLenum ;
readonly COMPRESSED_RGBA_ASTC_5x4_KHR : GLenum ;
readonly COMPRESSED_RGBA_ASTC_5x5_KHR : GLenum ;
readonly COMPRESSED_RGBA_ASTC_6x5_KHR : GLenum ;
readonly COMPRESSED_RGBA_ASTC_6x6_KHR : GLenum ;
readonly COMPRESSED_RGBA_ASTC_8x5_KHR : GLenum ;
readonly COMPRESSED_RGBA_ASTC_8x6_KHR : GLenum ;
readonly COMPRESSED_RGBA_ASTC_8x8_KHR : GLenum ;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR : GLenum ;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR : GLenum ;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR : GLenum ;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR : GLenum ;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR : GLenum ;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR : GLenum ;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR : GLenum ;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR : GLenum ;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR : GLenum ;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR : GLenum ;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR : GLenum ;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR : GLenum ;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR : GLenum ;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR : GLenum ;
}
2019-02-28 23:35:03 +01:00
/** The WEBGL_compressed_texture_s3tc extension is part of the WebGL API and exposes four S3TC compressed texture formats. */
2018-11-13 01:27:38 +01:00
interface WEBGL_compressed_texture_s3tc {
readonly COMPRESSED_RGBA_S3TC_DXT1_EXT : GLenum ;
readonly COMPRESSED_RGBA_S3TC_DXT3_EXT : GLenum ;
readonly COMPRESSED_RGBA_S3TC_DXT5_EXT : GLenum ;
readonly COMPRESSED_RGB_S3TC_DXT1_EXT : GLenum ;
}
interface WEBGL_compressed_texture_s3tc_srgb {
readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT : GLenum ;
readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT : GLenum ;
readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT : GLenum ;
readonly COMPRESSED_SRGB_S3TC_DXT1_EXT : GLenum ;
}
2019-02-28 23:35:03 +01:00
/** The WEBGL_debug_renderer_info extension is part of the WebGL API and exposes two constants with information about the graphics driver for debugging purposes. */
2018-11-13 01:27:38 +01:00
interface WEBGL_debug_renderer_info {
readonly UNMASKED_RENDERER_WEBGL : GLenum ;
readonly UNMASKED_VENDOR_WEBGL : GLenum ;
}
interface WEBGL_debug_shaders {
getTranslatedShaderSource ( shader : WebGLShader ) : string ;
}
2019-02-28 23:35:03 +01:00
/** The WEBGL_depth_texture extension is part of the WebGL API and defines 2D depth and depth-stencil textures. */
2018-11-13 01:27:38 +01:00
interface WEBGL_depth_texture {
readonly UNSIGNED_INT_24_8_WEBGL : GLenum ;
}
interface WEBGL_draw_buffers {
drawBuffersWEBGL ( buffers : GLenum [ ] ) : void ;
readonly COLOR_ATTACHMENT0_WEBGL : GLenum ;
readonly COLOR_ATTACHMENT10_WEBGL : GLenum ;
readonly COLOR_ATTACHMENT11_WEBGL : GLenum ;
readonly COLOR_ATTACHMENT12_WEBGL : GLenum ;
readonly COLOR_ATTACHMENT13_WEBGL : GLenum ;
readonly COLOR_ATTACHMENT14_WEBGL : GLenum ;
readonly COLOR_ATTACHMENT15_WEBGL : GLenum ;
readonly COLOR_ATTACHMENT1_WEBGL : GLenum ;
readonly COLOR_ATTACHMENT2_WEBGL : GLenum ;
readonly COLOR_ATTACHMENT3_WEBGL : GLenum ;
readonly COLOR_ATTACHMENT4_WEBGL : GLenum ;
readonly COLOR_ATTACHMENT5_WEBGL : GLenum ;
readonly COLOR_ATTACHMENT6_WEBGL : GLenum ;
readonly COLOR_ATTACHMENT7_WEBGL : GLenum ;
readonly COLOR_ATTACHMENT8_WEBGL : GLenum ;
readonly COLOR_ATTACHMENT9_WEBGL : GLenum ;
readonly DRAW_BUFFER0_WEBGL : GLenum ;
readonly DRAW_BUFFER10_WEBGL : GLenum ;
readonly DRAW_BUFFER11_WEBGL : GLenum ;
readonly DRAW_BUFFER12_WEBGL : GLenum ;
readonly DRAW_BUFFER13_WEBGL : GLenum ;
readonly DRAW_BUFFER14_WEBGL : GLenum ;
readonly DRAW_BUFFER15_WEBGL : GLenum ;
readonly DRAW_BUFFER1_WEBGL : GLenum ;
readonly DRAW_BUFFER2_WEBGL : GLenum ;
readonly DRAW_BUFFER3_WEBGL : GLenum ;
readonly DRAW_BUFFER4_WEBGL : GLenum ;
readonly DRAW_BUFFER5_WEBGL : GLenum ;
readonly DRAW_BUFFER6_WEBGL : GLenum ;
readonly DRAW_BUFFER7_WEBGL : GLenum ;
readonly DRAW_BUFFER8_WEBGL : GLenum ;
readonly DRAW_BUFFER9_WEBGL : GLenum ;
readonly MAX_COLOR_ATTACHMENTS_WEBGL : GLenum ;
readonly MAX_DRAW_BUFFERS_WEBGL : GLenum ;
}
interface WEBGL_lose_context {
loseContext ( ) : void ;
restoreContext ( ) : void ;
}
2019-07-29 19:33:43 +02:00
interface WebGL2RenderingContext extends WebGLRenderingContextBase , WebGL2RenderingContextBase , WebGL2RenderingContextOverloads {
2018-11-13 01:27:38 +01:00
}
2019-07-29 19:33:43 +02:00
declare var WebGL2RenderingContext : {
prototype : WebGL2RenderingContext ;
new ( ) : WebGL2RenderingContext ;
readonly ACTIVE_ATTRIBUTES : GLenum ;
readonly ACTIVE_TEXTURE : GLenum ;
readonly ACTIVE_UNIFORMS : GLenum ;
readonly ALIASED_LINE_WIDTH_RANGE : GLenum ;
readonly ALIASED_POINT_SIZE_RANGE : GLenum ;
readonly ALPHA : GLenum ;
readonly ALPHA_BITS : GLenum ;
readonly ALWAYS : GLenum ;
readonly ARRAY_BUFFER : GLenum ;
readonly ARRAY_BUFFER_BINDING : GLenum ;
readonly ATTACHED_SHADERS : GLenum ;
readonly BACK : GLenum ;
readonly BLEND : GLenum ;
readonly BLEND_COLOR : GLenum ;
readonly BLEND_DST_ALPHA : GLenum ;
readonly BLEND_DST_RGB : GLenum ;
readonly BLEND_EQUATION : GLenum ;
readonly BLEND_EQUATION_ALPHA : GLenum ;
readonly BLEND_EQUATION_RGB : GLenum ;
readonly BLEND_SRC_ALPHA : GLenum ;
readonly BLEND_SRC_RGB : GLenum ;
readonly BLUE_BITS : GLenum ;
readonly BOOL : GLenum ;
readonly BOOL_VEC2 : GLenum ;
readonly BOOL_VEC3 : GLenum ;
readonly BOOL_VEC4 : GLenum ;
readonly BROWSER_DEFAULT_WEBGL : GLenum ;
readonly BUFFER_SIZE : GLenum ;
readonly BUFFER_USAGE : GLenum ;
readonly BYTE : GLenum ;
readonly CCW : GLenum ;
readonly CLAMP_TO_EDGE : GLenum ;
readonly COLOR_ATTACHMENT0 : GLenum ;
readonly COLOR_BUFFER_BIT : GLenum ;
readonly COLOR_CLEAR_VALUE : GLenum ;
readonly COLOR_WRITEMASK : GLenum ;
readonly COMPILE_STATUS : GLenum ;
readonly COMPRESSED_TEXTURE_FORMATS : GLenum ;
readonly CONSTANT_ALPHA : GLenum ;
readonly CONSTANT_COLOR : GLenum ;
readonly CONTEXT_LOST_WEBGL : GLenum ;
readonly CULL_FACE : GLenum ;
readonly CULL_FACE_MODE : GLenum ;
readonly CURRENT_PROGRAM : GLenum ;
readonly CURRENT_VERTEX_ATTRIB : GLenum ;
readonly CW : GLenum ;
readonly DECR : GLenum ;
readonly DECR_WRAP : GLenum ;
readonly DELETE_STATUS : GLenum ;
readonly DEPTH_ATTACHMENT : GLenum ;
readonly DEPTH_BITS : GLenum ;
readonly DEPTH_BUFFER_BIT : GLenum ;
readonly DEPTH_CLEAR_VALUE : GLenum ;
readonly DEPTH_COMPONENT : GLenum ;
readonly DEPTH_COMPONENT16 : GLenum ;
readonly DEPTH_FUNC : GLenum ;
readonly DEPTH_RANGE : GLenum ;
readonly DEPTH_STENCIL : GLenum ;
readonly DEPTH_STENCIL_ATTACHMENT : GLenum ;
readonly DEPTH_TEST : GLenum ;
readonly DEPTH_WRITEMASK : GLenum ;
readonly DITHER : GLenum ;
readonly DONT_CARE : GLenum ;
readonly DST_ALPHA : GLenum ;
readonly DST_COLOR : GLenum ;
readonly DYNAMIC_DRAW : GLenum ;
readonly ELEMENT_ARRAY_BUFFER : GLenum ;
readonly ELEMENT_ARRAY_BUFFER_BINDING : GLenum ;
readonly EQUAL : GLenum ;
readonly FASTEST : GLenum ;
readonly FLOAT : GLenum ;
readonly FLOAT_MAT2 : GLenum ;
readonly FLOAT_MAT3 : GLenum ;
readonly FLOAT_MAT4 : GLenum ;
readonly FLOAT_VEC2 : GLenum ;
readonly FLOAT_VEC3 : GLenum ;
readonly FLOAT_VEC4 : GLenum ;
readonly FRAGMENT_SHADER : GLenum ;
readonly FRAMEBUFFER : GLenum ;
readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME : GLenum ;
readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE : GLenum ;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE : GLenum ;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL : GLenum ;
readonly FRAMEBUFFER_BINDING : GLenum ;
readonly FRAMEBUFFER_COMPLETE : GLenum ;
readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT : GLenum ;
readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS : GLenum ;
readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT : GLenum ;
readonly FRAMEBUFFER_UNSUPPORTED : GLenum ;
readonly FRONT : GLenum ;
readonly FRONT_AND_BACK : GLenum ;
readonly FRONT_FACE : GLenum ;
readonly FUNC_ADD : GLenum ;
readonly FUNC_REVERSE_SUBTRACT : GLenum ;
readonly FUNC_SUBTRACT : GLenum ;
readonly GENERATE_MIPMAP_HINT : GLenum ;
readonly GEQUAL : GLenum ;
readonly GREATER : GLenum ;
readonly GREEN_BITS : GLenum ;
readonly HIGH_FLOAT : GLenum ;
readonly HIGH_INT : GLenum ;
readonly IMPLEMENTATION_COLOR_READ_FORMAT : GLenum ;
readonly IMPLEMENTATION_COLOR_READ_TYPE : GLenum ;
readonly INCR : GLenum ;
readonly INCR_WRAP : GLenum ;
readonly INT : GLenum ;
readonly INT_VEC2 : GLenum ;
readonly INT_VEC3 : GLenum ;
readonly INT_VEC4 : GLenum ;
readonly INVALID_ENUM : GLenum ;
readonly INVALID_FRAMEBUFFER_OPERATION : GLenum ;
readonly INVALID_OPERATION : GLenum ;
readonly INVALID_VALUE : GLenum ;
readonly INVERT : GLenum ;
readonly KEEP : GLenum ;
readonly LEQUAL : GLenum ;
readonly LESS : GLenum ;
readonly LINEAR : GLenum ;
readonly LINEAR_MIPMAP_LINEAR : GLenum ;
readonly LINEAR_MIPMAP_NEAREST : GLenum ;
readonly LINES : GLenum ;
readonly LINE_LOOP : GLenum ;
readonly LINE_STRIP : GLenum ;
readonly LINE_WIDTH : GLenum ;
readonly LINK_STATUS : GLenum ;
readonly LOW_FLOAT : GLenum ;
readonly LOW_INT : GLenum ;
readonly LUMINANCE : GLenum ;
readonly LUMINANCE_ALPHA : GLenum ;
readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS : GLenum ;
readonly MAX_CUBE_MAP_TEXTURE_SIZE : GLenum ;
readonly MAX_FRAGMENT_UNIFORM_VECTORS : GLenum ;
readonly MAX_RENDERBUFFER_SIZE : GLenum ;
readonly MAX_TEXTURE_IMAGE_UNITS : GLenum ;
readonly MAX_TEXTURE_SIZE : GLenum ;
readonly MAX_VARYING_VECTORS : GLenum ;
readonly MAX_VERTEX_ATTRIBS : GLenum ;
readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS : GLenum ;
readonly MAX_VERTEX_UNIFORM_VECTORS : GLenum ;
readonly MAX_VIEWPORT_DIMS : GLenum ;
readonly MEDIUM_FLOAT : GLenum ;
readonly MEDIUM_INT : GLenum ;
readonly MIRRORED_REPEAT : GLenum ;
readonly NEAREST : GLenum ;
readonly NEAREST_MIPMAP_LINEAR : GLenum ;
readonly NEAREST_MIPMAP_NEAREST : GLenum ;
readonly NEVER : GLenum ;
readonly NICEST : GLenum ;
readonly NONE : GLenum ;
readonly NOTEQUAL : GLenum ;
readonly NO_ERROR : GLenum ;
readonly ONE : GLenum ;
readonly ONE_MINUS_CONSTANT_ALPHA : GLenum ;
readonly ONE_MINUS_CONSTANT_COLOR : GLenum ;
readonly ONE_MINUS_DST_ALPHA : GLenum ;
readonly ONE_MINUS_DST_COLOR : GLenum ;
readonly ONE_MINUS_SRC_ALPHA : GLenum ;
readonly ONE_MINUS_SRC_COLOR : GLenum ;
readonly OUT_OF_MEMORY : GLenum ;
readonly PACK_ALIGNMENT : GLenum ;
readonly POINTS : GLenum ;
readonly POLYGON_OFFSET_FACTOR : GLenum ;
readonly POLYGON_OFFSET_FILL : GLenum ;
readonly POLYGON_OFFSET_UNITS : GLenum ;
readonly RED_BITS : GLenum ;
readonly RENDERBUFFER : GLenum ;
readonly RENDERBUFFER_ALPHA_SIZE : GLenum ;
readonly RENDERBUFFER_BINDING : GLenum ;
readonly RENDERBUFFER_BLUE_SIZE : GLenum ;
readonly RENDERBUFFER_DEPTH_SIZE : GLenum ;
readonly RENDERBUFFER_GREEN_SIZE : GLenum ;
readonly RENDERBUFFER_HEIGHT : GLenum ;
readonly RENDERBUFFER_INTERNAL_FORMAT : GLenum ;
readonly RENDERBUFFER_RED_SIZE : GLenum ;
readonly RENDERBUFFER_STENCIL_SIZE : GLenum ;
readonly RENDERBUFFER_WIDTH : GLenum ;
readonly RENDERER : GLenum ;
readonly REPEAT : GLenum ;
readonly REPLACE : GLenum ;
readonly RGB : GLenum ;
readonly RGB565 : GLenum ;
readonly RGB5_A1 : GLenum ;
readonly RGBA : GLenum ;
readonly RGBA4 : GLenum ;
readonly SAMPLER_2D : GLenum ;
readonly SAMPLER_CUBE : GLenum ;
readonly SAMPLES : GLenum ;
readonly SAMPLE_ALPHA_TO_COVERAGE : GLenum ;
readonly SAMPLE_BUFFERS : GLenum ;
readonly SAMPLE_COVERAGE : GLenum ;
readonly SAMPLE_COVERAGE_INVERT : GLenum ;
readonly SAMPLE_COVERAGE_VALUE : GLenum ;
readonly SCISSOR_BOX : GLenum ;
readonly SCISSOR_TEST : GLenum ;
readonly SHADER_TYPE : GLenum ;
readonly SHADING_LANGUAGE_VERSION : GLenum ;
readonly SHORT : GLenum ;
readonly SRC_ALPHA : GLenum ;
readonly SRC_ALPHA_SATURATE : GLenum ;
readonly SRC_COLOR : GLenum ;
readonly STATIC_DRAW : GLenum ;
readonly STENCIL_ATTACHMENT : GLenum ;
readonly STENCIL_BACK_FAIL : GLenum ;
readonly STENCIL_BACK_FUNC : GLenum ;
readonly STENCIL_BACK_PASS_DEPTH_FAIL : GLenum ;
readonly STENCIL_BACK_PASS_DEPTH_PASS : GLenum ;
readonly STENCIL_BACK_REF : GLenum ;
readonly STENCIL_BACK_VALUE_MASK : GLenum ;
readonly STENCIL_BACK_WRITEMASK : GLenum ;
readonly STENCIL_BITS : GLenum ;
readonly STENCIL_BUFFER_BIT : GLenum ;
readonly STENCIL_CLEAR_VALUE : GLenum ;
readonly STENCIL_FAIL : GLenum ;
readonly STENCIL_FUNC : GLenum ;
readonly STENCIL_INDEX8 : GLenum ;
readonly STENCIL_PASS_DEPTH_FAIL : GLenum ;
readonly STENCIL_PASS_DEPTH_PASS : GLenum ;
readonly STENCIL_REF : GLenum ;
readonly STENCIL_TEST : GLenum ;
readonly STENCIL_VALUE_MASK : GLenum ;
readonly STENCIL_WRITEMASK : GLenum ;
readonly STREAM_DRAW : GLenum ;
readonly SUBPIXEL_BITS : GLenum ;
readonly TEXTURE : GLenum ;
readonly TEXTURE0 : GLenum ;
readonly TEXTURE1 : GLenum ;
readonly TEXTURE10 : GLenum ;
readonly TEXTURE11 : GLenum ;
readonly TEXTURE12 : GLenum ;
readonly TEXTURE13 : GLenum ;
readonly TEXTURE14 : GLenum ;
readonly TEXTURE15 : GLenum ;
readonly TEXTURE16 : GLenum ;
readonly TEXTURE17 : GLenum ;
readonly TEXTURE18 : GLenum ;
readonly TEXTURE19 : GLenum ;
readonly TEXTURE2 : GLenum ;
readonly TEXTURE20 : GLenum ;
readonly TEXTURE21 : GLenum ;
readonly TEXTURE22 : GLenum ;
readonly TEXTURE23 : GLenum ;
readonly TEXTURE24 : GLenum ;
readonly TEXTURE25 : GLenum ;
readonly TEXTURE26 : GLenum ;
readonly TEXTURE27 : GLenum ;
readonly TEXTURE28 : GLenum ;
readonly TEXTURE29 : GLenum ;
readonly TEXTURE3 : GLenum ;
readonly TEXTURE30 : GLenum ;
readonly TEXTURE31 : GLenum ;
readonly TEXTURE4 : GLenum ;
readonly TEXTURE5 : GLenum ;
readonly TEXTURE6 : GLenum ;
readonly TEXTURE7 : GLenum ;
readonly TEXTURE8 : GLenum ;
readonly TEXTURE9 : GLenum ;
readonly TEXTURE_2D : GLenum ;
readonly TEXTURE_BINDING_2D : GLenum ;
readonly TEXTURE_BINDING_CUBE_MAP : GLenum ;
readonly TEXTURE_CUBE_MAP : GLenum ;
readonly TEXTURE_CUBE_MAP_NEGATIVE_X : GLenum ;
readonly TEXTURE_CUBE_MAP_NEGATIVE_Y : GLenum ;
readonly TEXTURE_CUBE_MAP_NEGATIVE_Z : GLenum ;
readonly TEXTURE_CUBE_MAP_POSITIVE_X : GLenum ;
readonly TEXTURE_CUBE_MAP_POSITIVE_Y : GLenum ;
readonly TEXTURE_CUBE_MAP_POSITIVE_Z : GLenum ;
readonly TEXTURE_MAG_FILTER : GLenum ;
readonly TEXTURE_MIN_FILTER : GLenum ;
readonly TEXTURE_WRAP_S : GLenum ;
readonly TEXTURE_WRAP_T : GLenum ;
readonly TRIANGLES : GLenum ;
readonly TRIANGLE_FAN : GLenum ;
readonly TRIANGLE_STRIP : GLenum ;
readonly UNPACK_ALIGNMENT : GLenum ;
readonly UNPACK_COLORSPACE_CONVERSION_WEBGL : GLenum ;
readonly UNPACK_FLIP_Y_WEBGL : GLenum ;
readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL : GLenum ;
readonly UNSIGNED_BYTE : GLenum ;
readonly UNSIGNED_INT : GLenum ;
readonly UNSIGNED_SHORT : GLenum ;
readonly UNSIGNED_SHORT_4_4_4_4 : GLenum ;
readonly UNSIGNED_SHORT_5_5_5_1 : GLenum ;
readonly UNSIGNED_SHORT_5_6_5 : GLenum ;
readonly VALIDATE_STATUS : GLenum ;
readonly VENDOR : GLenum ;
readonly VERSION : GLenum ;
readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING : GLenum ;
readonly VERTEX_ATTRIB_ARRAY_ENABLED : GLenum ;
readonly VERTEX_ATTRIB_ARRAY_NORMALIZED : GLenum ;
readonly VERTEX_ATTRIB_ARRAY_POINTER : GLenum ;
readonly VERTEX_ATTRIB_ARRAY_SIZE : GLenum ;
readonly VERTEX_ATTRIB_ARRAY_STRIDE : GLenum ;
readonly VERTEX_ATTRIB_ARRAY_TYPE : GLenum ;
readonly VERTEX_SHADER : GLenum ;
readonly VIEWPORT : GLenum ;
readonly ZERO : GLenum ;
readonly ACTIVE_UNIFORM_BLOCKS : GLenum ;
readonly ALREADY_SIGNALED : GLenum ;
readonly ANY_SAMPLES_PASSED : GLenum ;
readonly ANY_SAMPLES_PASSED_CONSERVATIVE : GLenum ;
readonly COLOR : GLenum ;
readonly COLOR_ATTACHMENT1 : GLenum ;
readonly COLOR_ATTACHMENT10 : GLenum ;
readonly COLOR_ATTACHMENT11 : GLenum ;
readonly COLOR_ATTACHMENT12 : GLenum ;
readonly COLOR_ATTACHMENT13 : GLenum ;
readonly COLOR_ATTACHMENT14 : GLenum ;
readonly COLOR_ATTACHMENT15 : GLenum ;
readonly COLOR_ATTACHMENT2 : GLenum ;
readonly COLOR_ATTACHMENT3 : GLenum ;
readonly COLOR_ATTACHMENT4 : GLenum ;
readonly COLOR_ATTACHMENT5 : GLenum ;
readonly COLOR_ATTACHMENT6 : GLenum ;
readonly COLOR_ATTACHMENT7 : GLenum ;
readonly COLOR_ATTACHMENT8 : GLenum ;
readonly COLOR_ATTACHMENT9 : GLenum ;
readonly COMPARE_REF_TO_TEXTURE : GLenum ;
readonly CONDITION_SATISFIED : GLenum ;
readonly COPY_READ_BUFFER : GLenum ;
readonly COPY_READ_BUFFER_BINDING : GLenum ;
readonly COPY_WRITE_BUFFER : GLenum ;
readonly COPY_WRITE_BUFFER_BINDING : GLenum ;
readonly CURRENT_QUERY : GLenum ;
readonly DEPTH : GLenum ;
readonly DEPTH24_STENCIL8 : GLenum ;
readonly DEPTH32F_STENCIL8 : GLenum ;
readonly DEPTH_COMPONENT24 : GLenum ;
readonly DEPTH_COMPONENT32F : GLenum ;
readonly DRAW_BUFFER0 : GLenum ;
readonly DRAW_BUFFER1 : GLenum ;
readonly DRAW_BUFFER10 : GLenum ;
readonly DRAW_BUFFER11 : GLenum ;
readonly DRAW_BUFFER12 : GLenum ;
readonly DRAW_BUFFER13 : GLenum ;
readonly DRAW_BUFFER14 : GLenum ;
readonly DRAW_BUFFER15 : GLenum ;
readonly DRAW_BUFFER2 : GLenum ;
readonly DRAW_BUFFER3 : GLenum ;
readonly DRAW_BUFFER4 : GLenum ;
readonly DRAW_BUFFER5 : GLenum ;
readonly DRAW_BUFFER6 : GLenum ;
readonly DRAW_BUFFER7 : GLenum ;
readonly DRAW_BUFFER8 : GLenum ;
readonly DRAW_BUFFER9 : GLenum ;
readonly DRAW_FRAMEBUFFER : GLenum ;
readonly DRAW_FRAMEBUFFER_BINDING : GLenum ;
readonly DYNAMIC_COPY : GLenum ;
readonly DYNAMIC_READ : GLenum ;
readonly FLOAT_32_UNSIGNED_INT_24_8_REV : GLenum ;
readonly FLOAT_MAT2x3 : GLenum ;
readonly FLOAT_MAT2x4 : GLenum ;
readonly FLOAT_MAT3x2 : GLenum ;
readonly FLOAT_MAT3x4 : GLenum ;
readonly FLOAT_MAT4x2 : GLenum ;
readonly FLOAT_MAT4x3 : GLenum ;
readonly FRAGMENT_SHADER_DERIVATIVE_HINT : GLenum ;
readonly FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE : GLenum ;
readonly FRAMEBUFFER_ATTACHMENT_BLUE_SIZE : GLenum ;
readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING : GLenum ;
readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE : GLenum ;
readonly FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE : GLenum ;
readonly FRAMEBUFFER_ATTACHMENT_GREEN_SIZE : GLenum ;
readonly FRAMEBUFFER_ATTACHMENT_RED_SIZE : GLenum ;
readonly FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE : GLenum ;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER : GLenum ;
readonly FRAMEBUFFER_DEFAULT : GLenum ;
readonly FRAMEBUFFER_INCOMPLETE_MULTISAMPLE : GLenum ;
readonly HALF_FLOAT : GLenum ;
readonly INTERLEAVED_ATTRIBS : GLenum ;
readonly INT_2_10_10_10_REV : GLenum ;
readonly INT_SAMPLER_2D : GLenum ;
readonly INT_SAMPLER_2D_ARRAY : GLenum ;
readonly INT_SAMPLER_3D : GLenum ;
readonly INT_SAMPLER_CUBE : GLenum ;
readonly INVALID_INDEX : GLenum ;
readonly MAX : GLenum ;
readonly MAX_3D_TEXTURE_SIZE : GLenum ;
readonly MAX_ARRAY_TEXTURE_LAYERS : GLenum ;
readonly MAX_CLIENT_WAIT_TIMEOUT_WEBGL : GLenum ;
readonly MAX_COLOR_ATTACHMENTS : GLenum ;
readonly MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS : GLenum ;
readonly MAX_COMBINED_UNIFORM_BLOCKS : GLenum ;
readonly MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS : GLenum ;
readonly MAX_DRAW_BUFFERS : GLenum ;
readonly MAX_ELEMENTS_INDICES : GLenum ;
readonly MAX_ELEMENTS_VERTICES : GLenum ;
readonly MAX_ELEMENT_INDEX : GLenum ;
readonly MAX_FRAGMENT_INPUT_COMPONENTS : GLenum ;
readonly MAX_FRAGMENT_UNIFORM_BLOCKS : GLenum ;
readonly MAX_FRAGMENT_UNIFORM_COMPONENTS : GLenum ;
readonly MAX_PROGRAM_TEXEL_OFFSET : GLenum ;
readonly MAX_SAMPLES : GLenum ;
readonly MAX_SERVER_WAIT_TIMEOUT : GLenum ;
readonly MAX_TEXTURE_LOD_BIAS : GLenum ;
readonly MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS : GLenum ;
readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS : GLenum ;
readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS : GLenum ;
readonly MAX_UNIFORM_BLOCK_SIZE : GLenum ;
readonly MAX_UNIFORM_BUFFER_BINDINGS : GLenum ;
readonly MAX_VARYING_COMPONENTS : GLenum ;
readonly MAX_VERTEX_OUTPUT_COMPONENTS : GLenum ;
readonly MAX_VERTEX_UNIFORM_BLOCKS : GLenum ;
readonly MAX_VERTEX_UNIFORM_COMPONENTS : GLenum ;
readonly MIN : GLenum ;
readonly MIN_PROGRAM_TEXEL_OFFSET : GLenum ;
readonly OBJECT_TYPE : GLenum ;
readonly PACK_ROW_LENGTH : GLenum ;
readonly PACK_SKIP_PIXELS : GLenum ;
readonly PACK_SKIP_ROWS : GLenum ;
readonly PIXEL_PACK_BUFFER : GLenum ;
readonly PIXEL_PACK_BUFFER_BINDING : GLenum ;
readonly PIXEL_UNPACK_BUFFER : GLenum ;
readonly PIXEL_UNPACK_BUFFER_BINDING : GLenum ;
readonly QUERY_RESULT : GLenum ;
readonly QUERY_RESULT_AVAILABLE : GLenum ;
readonly R11F_G11F_B10F : GLenum ;
readonly R16F : GLenum ;
readonly R16I : GLenum ;
readonly R16UI : GLenum ;
readonly R32F : GLenum ;
readonly R32I : GLenum ;
readonly R32UI : GLenum ;
readonly R8 : GLenum ;
readonly R8I : GLenum ;
readonly R8UI : GLenum ;
readonly R8_SNORM : GLenum ;
readonly RASTERIZER_DISCARD : GLenum ;
readonly READ_BUFFER : GLenum ;
readonly READ_FRAMEBUFFER : GLenum ;
readonly READ_FRAMEBUFFER_BINDING : GLenum ;
readonly RED : GLenum ;
readonly RED_INTEGER : GLenum ;
readonly RENDERBUFFER_SAMPLES : GLenum ;
readonly RG : GLenum ;
readonly RG16F : GLenum ;
readonly RG16I : GLenum ;
readonly RG16UI : GLenum ;
readonly RG32F : GLenum ;
readonly RG32I : GLenum ;
readonly RG32UI : GLenum ;
readonly RG8 : GLenum ;
readonly RG8I : GLenum ;
readonly RG8UI : GLenum ;
readonly RG8_SNORM : GLenum ;
readonly RGB10_A2 : GLenum ;
readonly RGB10_A2UI : GLenum ;
readonly RGB16F : GLenum ;
readonly RGB16I : GLenum ;
readonly RGB16UI : GLenum ;
readonly RGB32F : GLenum ;
readonly RGB32I : GLenum ;
readonly RGB32UI : GLenum ;
readonly RGB8 : GLenum ;
readonly RGB8I : GLenum ;
readonly RGB8UI : GLenum ;
readonly RGB8_SNORM : GLenum ;
readonly RGB9_E5 : GLenum ;
readonly RGBA16F : GLenum ;
readonly RGBA16I : GLenum ;
readonly RGBA16UI : GLenum ;
readonly RGBA32F : GLenum ;
readonly RGBA32I : GLenum ;
readonly RGBA32UI : GLenum ;
readonly RGBA8 : GLenum ;
readonly RGBA8I : GLenum ;
readonly RGBA8UI : GLenum ;
readonly RGBA8_SNORM : GLenum ;
readonly RGBA_INTEGER : GLenum ;
readonly RGB_INTEGER : GLenum ;
readonly RG_INTEGER : GLenum ;
readonly SAMPLER_2D_ARRAY : GLenum ;
readonly SAMPLER_2D_ARRAY_SHADOW : GLenum ;
readonly SAMPLER_2D_SHADOW : GLenum ;
readonly SAMPLER_3D : GLenum ;
readonly SAMPLER_BINDING : GLenum ;
readonly SAMPLER_CUBE_SHADOW : GLenum ;
readonly SEPARATE_ATTRIBS : GLenum ;
readonly SIGNALED : GLenum ;
readonly SIGNED_NORMALIZED : GLenum ;
readonly SRGB : GLenum ;
readonly SRGB8 : GLenum ;
readonly SRGB8_ALPHA8 : GLenum ;
readonly STATIC_COPY : GLenum ;
readonly STATIC_READ : GLenum ;
readonly STENCIL : GLenum ;
readonly STREAM_COPY : GLenum ;
readonly STREAM_READ : GLenum ;
readonly SYNC_CONDITION : GLenum ;
readonly SYNC_FENCE : GLenum ;
readonly SYNC_FLAGS : GLenum ;
readonly SYNC_FLUSH_COMMANDS_BIT : GLenum ;
readonly SYNC_GPU_COMMANDS_COMPLETE : GLenum ;
readonly SYNC_STATUS : GLenum ;
readonly TEXTURE_2D_ARRAY : GLenum ;
readonly TEXTURE_3D : GLenum ;
readonly TEXTURE_BASE_LEVEL : GLenum ;
readonly TEXTURE_BINDING_2D_ARRAY : GLenum ;
readonly TEXTURE_BINDING_3D : GLenum ;
readonly TEXTURE_COMPARE_FUNC : GLenum ;
readonly TEXTURE_COMPARE_MODE : GLenum ;
readonly TEXTURE_IMMUTABLE_FORMAT : GLenum ;
readonly TEXTURE_IMMUTABLE_LEVELS : GLenum ;
readonly TEXTURE_MAX_LEVEL : GLenum ;
readonly TEXTURE_MAX_LOD : GLenum ;
readonly TEXTURE_MIN_LOD : GLenum ;
readonly TEXTURE_WRAP_R : GLenum ;
readonly TIMEOUT_EXPIRED : GLenum ;
readonly TIMEOUT_IGNORED : GLint64 ;
readonly TRANSFORM_FEEDBACK : GLenum ;
readonly TRANSFORM_FEEDBACK_ACTIVE : GLenum ;
readonly TRANSFORM_FEEDBACK_BINDING : GLenum ;
readonly TRANSFORM_FEEDBACK_BUFFER : GLenum ;
readonly TRANSFORM_FEEDBACK_BUFFER_BINDING : GLenum ;
readonly TRANSFORM_FEEDBACK_BUFFER_MODE : GLenum ;
readonly TRANSFORM_FEEDBACK_BUFFER_SIZE : GLenum ;
readonly TRANSFORM_FEEDBACK_BUFFER_START : GLenum ;
readonly TRANSFORM_FEEDBACK_PAUSED : GLenum ;
readonly TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN : GLenum ;
readonly TRANSFORM_FEEDBACK_VARYINGS : GLenum ;
readonly UNIFORM_ARRAY_STRIDE : GLenum ;
readonly UNIFORM_BLOCK_ACTIVE_UNIFORMS : GLenum ;
readonly UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES : GLenum ;
readonly UNIFORM_BLOCK_BINDING : GLenum ;
readonly UNIFORM_BLOCK_DATA_SIZE : GLenum ;
readonly UNIFORM_BLOCK_INDEX : GLenum ;
readonly UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER : GLenum ;
readonly UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER : GLenum ;
readonly UNIFORM_BUFFER : GLenum ;
readonly UNIFORM_BUFFER_BINDING : GLenum ;
readonly UNIFORM_BUFFER_OFFSET_ALIGNMENT : GLenum ;
readonly UNIFORM_BUFFER_SIZE : GLenum ;
readonly UNIFORM_BUFFER_START : GLenum ;
readonly UNIFORM_IS_ROW_MAJOR : GLenum ;
readonly UNIFORM_MATRIX_STRIDE : GLenum ;
readonly UNIFORM_OFFSET : GLenum ;
readonly UNIFORM_SIZE : GLenum ;
readonly UNIFORM_TYPE : GLenum ;
readonly UNPACK_IMAGE_HEIGHT : GLenum ;
readonly UNPACK_ROW_LENGTH : GLenum ;
readonly UNPACK_SKIP_IMAGES : GLenum ;
readonly UNPACK_SKIP_PIXELS : GLenum ;
readonly UNPACK_SKIP_ROWS : GLenum ;
readonly UNSIGNALED : GLenum ;
readonly UNSIGNED_INT_10F_11F_11F_REV : GLenum ;
readonly UNSIGNED_INT_24_8 : GLenum ;
readonly UNSIGNED_INT_2_10_10_10_REV : GLenum ;
readonly UNSIGNED_INT_5_9_9_9_REV : GLenum ;
readonly UNSIGNED_INT_SAMPLER_2D : GLenum ;
readonly UNSIGNED_INT_SAMPLER_2D_ARRAY : GLenum ;
readonly UNSIGNED_INT_SAMPLER_3D : GLenum ;
readonly UNSIGNED_INT_SAMPLER_CUBE : GLenum ;
readonly UNSIGNED_INT_VEC2 : GLenum ;
readonly UNSIGNED_INT_VEC3 : GLenum ;
readonly UNSIGNED_INT_VEC4 : GLenum ;
readonly UNSIGNED_NORMALIZED : GLenum ;
readonly VERTEX_ARRAY_BINDING : GLenum ;
readonly VERTEX_ATTRIB_ARRAY_DIVISOR : GLenum ;
readonly VERTEX_ATTRIB_ARRAY_INTEGER : GLenum ;
readonly WAIT_FAILED : GLenum ;
} ;
interface WebGL2RenderingContextBase {
beginQuery ( target : GLenum , query : WebGLQuery ) : void ;
beginTransformFeedback ( primitiveMode : GLenum ) : void ;
bindBufferBase ( target : GLenum , index : GLuint , buffer : WebGLBuffer | null ) : void ;
bindBufferRange ( target : GLenum , index : GLuint , buffer : WebGLBuffer | null , offset : GLintptr , size : GLsizeiptr ) : void ;
bindSampler ( unit : GLuint , sampler : WebGLSampler | null ) : void ;
bindTransformFeedback ( target : GLenum , tf : WebGLTransformFeedback | null ) : void ;
bindVertexArray ( array : WebGLVertexArrayObject | null ) : void ;
blitFramebuffer ( srcX0 : GLint , srcY0 : GLint , srcX1 : GLint , srcY1 : GLint , dstX0 : GLint , dstY0 : GLint , dstX1 : GLint , dstY1 : GLint , mask : GLbitfield , filter : GLenum ) : void ;
clearBufferfi ( buffer : GLenum , drawbuffer : GLint , depth : GLfloat , stencil : GLint ) : void ;
clearBufferfv ( buffer : GLenum , drawbuffer : GLint , values : Float32List , srcOffset? : GLuint ) : void ;
clearBufferiv ( buffer : GLenum , drawbuffer : GLint , values : Int32List , srcOffset? : GLuint ) : void ;
clearBufferuiv ( buffer : GLenum , drawbuffer : GLint , values : Uint32List , srcOffset? : GLuint ) : void ;
clientWaitSync ( sync : WebGLSync , flags : GLbitfield , timeout : GLuint64 ) : GLenum ;
compressedTexImage3D ( target : GLenum , level : GLint , internalformat : GLenum , width : GLsizei , height : GLsizei , depth : GLsizei , border : GLint , imageSize : GLsizei , offset : GLintptr ) : void ;
compressedTexImage3D ( target : GLenum , level : GLint , internalformat : GLenum , width : GLsizei , height : GLsizei , depth : GLsizei , border : GLint , srcData : ArrayBufferView , srcOffset? : GLuint , srcLengthOverride? : GLuint ) : void ;
compressedTexSubImage3D ( target : GLenum , level : GLint , xoffset : GLint , yoffset : GLint , zoffset : GLint , width : GLsizei , height : GLsizei , depth : GLsizei , format : GLenum , imageSize : GLsizei , offset : GLintptr ) : void ;
compressedTexSubImage3D ( target : GLenum , level : GLint , xoffset : GLint , yoffset : GLint , zoffset : GLint , width : GLsizei , height : GLsizei , depth : GLsizei , format : GLenum , srcData : ArrayBufferView , srcOffset? : GLuint , srcLengthOverride? : GLuint ) : void ;
copyBufferSubData ( readTarget : GLenum , writeTarget : GLenum , readOffset : GLintptr , writeOffset : GLintptr , size : GLsizeiptr ) : void ;
copyTexSubImage3D ( target : GLenum , level : GLint , xoffset : GLint , yoffset : GLint , zoffset : GLint , x : GLint , y : GLint , width : GLsizei , height : GLsizei ) : void ;
createQuery ( ) : WebGLQuery | null ;
createSampler ( ) : WebGLSampler | null ;
createTransformFeedback ( ) : WebGLTransformFeedback | null ;
createVertexArray ( ) : WebGLVertexArrayObject | null ;
deleteQuery ( query : WebGLQuery | null ) : void ;
deleteSampler ( sampler : WebGLSampler | null ) : void ;
deleteSync ( sync : WebGLSync | null ) : void ;
deleteTransformFeedback ( tf : WebGLTransformFeedback | null ) : void ;
deleteVertexArray ( vertexArray : WebGLVertexArrayObject | null ) : void ;
drawArraysInstanced ( mode : GLenum , first : GLint , count : GLsizei , instanceCount : GLsizei ) : void ;
drawBuffers ( buffers : GLenum [ ] ) : void ;
drawElementsInstanced ( mode : GLenum , count : GLsizei , type : GLenum , offset : GLintptr , instanceCount : GLsizei ) : void ;
drawRangeElements ( mode : GLenum , start : GLuint , end : GLuint , count : GLsizei , type : GLenum , offset : GLintptr ) : void ;
endQuery ( target : GLenum ) : void ;
endTransformFeedback ( ) : void ;
fenceSync ( condition : GLenum , flags : GLbitfield ) : WebGLSync | null ;
framebufferTextureLayer ( target : GLenum , attachment : GLenum , texture : WebGLTexture | null , level : GLint , layer : GLint ) : void ;
getActiveUniformBlockName ( program : WebGLProgram , uniformBlockIndex : GLuint ) : string | null ;
getActiveUniformBlockParameter ( program : WebGLProgram , uniformBlockIndex : GLuint , pname : GLenum ) : any ;
getActiveUniforms ( program : WebGLProgram , uniformIndices : GLuint [ ] , pname : GLenum ) : any ;
getBufferSubData ( target : GLenum , srcByteOffset : GLintptr , dstBuffer : ArrayBufferView , dstOffset? : GLuint , length? : GLuint ) : void ;
getFragDataLocation ( program : WebGLProgram , name : string ) : GLint ;
getIndexedParameter ( target : GLenum , index : GLuint ) : any ;
getInternalformatParameter ( target : GLenum , internalformat : GLenum , pname : GLenum ) : any ;
getQuery ( target : GLenum , pname : GLenum ) : WebGLQuery | null ;
getQueryParameter ( query : WebGLQuery , pname : GLenum ) : any ;
getSamplerParameter ( sampler : WebGLSampler , pname : GLenum ) : any ;
getSyncParameter ( sync : WebGLSync , pname : GLenum ) : any ;
getTransformFeedbackVarying ( program : WebGLProgram , index : GLuint ) : WebGLActiveInfo | null ;
getUniformBlockIndex ( program : WebGLProgram , uniformBlockName : string ) : GLuint ;
getUniformIndices ( program : WebGLProgram , uniformNames : string [ ] ) : GLuint [ ] | null ;
invalidateFramebuffer ( target : GLenum , attachments : GLenum [ ] ) : void ;
invalidateSubFramebuffer ( target : GLenum , attachments : GLenum [ ] , x : GLint , y : GLint , width : GLsizei , height : GLsizei ) : void ;
isQuery ( query : WebGLQuery | null ) : GLboolean ;
isSampler ( sampler : WebGLSampler | null ) : GLboolean ;
isSync ( sync : WebGLSync | null ) : GLboolean ;
isTransformFeedback ( tf : WebGLTransformFeedback | null ) : GLboolean ;
isVertexArray ( vertexArray : WebGLVertexArrayObject | null ) : GLboolean ;
pauseTransformFeedback ( ) : void ;
readBuffer ( src : GLenum ) : void ;
renderbufferStorageMultisample ( target : GLenum , samples : GLsizei , internalformat : GLenum , width : GLsizei , height : GLsizei ) : void ;
resumeTransformFeedback ( ) : void ;
samplerParameterf ( sampler : WebGLSampler , pname : GLenum , param : GLfloat ) : void ;
samplerParameteri ( sampler : WebGLSampler , pname : GLenum , param : GLint ) : void ;
texImage3D ( target : GLenum , level : GLint , internalformat : GLint , width : GLsizei , height : GLsizei , depth : GLsizei , border : GLint , format : GLenum , type : GLenum , pboOffset : GLintptr ) : void ;
texImage3D ( target : GLenum , level : GLint , internalformat : GLint , width : GLsizei , height : GLsizei , depth : GLsizei , border : GLint , format : GLenum , type : GLenum , source : TexImageSource ) : void ;
texImage3D ( target : GLenum , level : GLint , internalformat : GLint , width : GLsizei , height : GLsizei , depth : GLsizei , border : GLint , format : GLenum , type : GLenum , srcData : ArrayBufferView | null ) : void ;
texImage3D ( target : GLenum , level : GLint , internalformat : GLint , width : GLsizei , height : GLsizei , depth : GLsizei , border : GLint , format : GLenum , type : GLenum , srcData : ArrayBufferView , srcOffset : GLuint ) : void ;
texStorage2D ( target : GLenum , levels : GLsizei , internalformat : GLenum , width : GLsizei , height : GLsizei ) : void ;
texStorage3D ( target : GLenum , levels : GLsizei , internalformat : GLenum , width : GLsizei , height : GLsizei , depth : GLsizei ) : void ;
texSubImage3D ( target : GLenum , level : GLint , xoffset : GLint , yoffset : GLint , zoffset : GLint , width : GLsizei , height : GLsizei , depth : GLsizei , format : GLenum , type : GLenum , pboOffset : GLintptr ) : void ;
texSubImage3D ( target : GLenum , level : GLint , xoffset : GLint , yoffset : GLint , zoffset : GLint , width : GLsizei , height : GLsizei , depth : GLsizei , format : GLenum , type : GLenum , source : TexImageSource ) : void ;
texSubImage3D ( target : GLenum , level : GLint , xoffset : GLint , yoffset : GLint , zoffset : GLint , width : GLsizei , height : GLsizei , depth : GLsizei , format : GLenum , type : GLenum , srcData : ArrayBufferView | null , srcOffset? : GLuint ) : void ;
transformFeedbackVaryings ( program : WebGLProgram , varyings : string [ ] , bufferMode : GLenum ) : void ;
uniform1ui ( location : WebGLUniformLocation | null , v0 : GLuint ) : void ;
uniform1uiv ( location : WebGLUniformLocation | null , data : Uint32List , srcOffset? : GLuint , srcLength? : GLuint ) : void ;
uniform2ui ( location : WebGLUniformLocation | null , v0 : GLuint , v1 : GLuint ) : void ;
uniform2uiv ( location : WebGLUniformLocation | null , data : Uint32List , srcOffset? : GLuint , srcLength? : GLuint ) : void ;
uniform3ui ( location : WebGLUniformLocation | null , v0 : GLuint , v1 : GLuint , v2 : GLuint ) : void ;
uniform3uiv ( location : WebGLUniformLocation | null , data : Uint32List , srcOffset? : GLuint , srcLength? : GLuint ) : void ;
uniform4ui ( location : WebGLUniformLocation | null , v0 : GLuint , v1 : GLuint , v2 : GLuint , v3 : GLuint ) : void ;
uniform4uiv ( location : WebGLUniformLocation | null , data : Uint32List , srcOffset? : GLuint , srcLength? : GLuint ) : void ;
uniformBlockBinding ( program : WebGLProgram , uniformBlockIndex : GLuint , uniformBlockBinding : GLuint ) : void ;
uniformMatrix2x3fv ( location : WebGLUniformLocation | null , transpose : GLboolean , data : Float32List , srcOffset? : GLuint , srcLength? : GLuint ) : void ;
uniformMatrix2x4fv ( location : WebGLUniformLocation | null , transpose : GLboolean , data : Float32List , srcOffset? : GLuint , srcLength? : GLuint ) : void ;
uniformMatrix3x2fv ( location : WebGLUniformLocation | null , transpose : GLboolean , data : Float32List , srcOffset? : GLuint , srcLength? : GLuint ) : void ;
uniformMatrix3x4fv ( location : WebGLUniformLocation | null , transpose : GLboolean , data : Float32List , srcOffset? : GLuint , srcLength? : GLuint ) : void ;
uniformMatrix4x2fv ( location : WebGLUniformLocation | null , transpose : GLboolean , data : Float32List , srcOffset? : GLuint , srcLength? : GLuint ) : void ;
uniformMatrix4x3fv ( location : WebGLUniformLocation | null , transpose : GLboolean , data : Float32List , srcOffset? : GLuint , srcLength? : GLuint ) : void ;
vertexAttribDivisor ( index : GLuint , divisor : GLuint ) : void ;
vertexAttribI4i ( index : GLuint , x : GLint , y : GLint , z : GLint , w : GLint ) : void ;
vertexAttribI4iv ( index : GLuint , values : Int32List ) : void ;
vertexAttribI4ui ( index : GLuint , x : GLuint , y : GLuint , z : GLuint , w : GLuint ) : void ;
vertexAttribI4uiv ( index : GLuint , values : Uint32List ) : void ;
vertexAttribIPointer ( index : GLuint , size : GLint , type : GLenum , stride : GLsizei , offset : GLintptr ) : void ;
waitSync ( sync : WebGLSync , flags : GLbitfield , timeout : GLint64 ) : void ;
readonly ACTIVE_UNIFORM_BLOCKS : GLenum ;
readonly ALREADY_SIGNALED : GLenum ;
readonly ANY_SAMPLES_PASSED : GLenum ;
readonly ANY_SAMPLES_PASSED_CONSERVATIVE : GLenum ;
readonly COLOR : GLenum ;
readonly COLOR_ATTACHMENT1 : GLenum ;
readonly COLOR_ATTACHMENT10 : GLenum ;
readonly COLOR_ATTACHMENT11 : GLenum ;
readonly COLOR_ATTACHMENT12 : GLenum ;
readonly COLOR_ATTACHMENT13 : GLenum ;
readonly COLOR_ATTACHMENT14 : GLenum ;
readonly COLOR_ATTACHMENT15 : GLenum ;
readonly COLOR_ATTACHMENT2 : GLenum ;
readonly COLOR_ATTACHMENT3 : GLenum ;
readonly COLOR_ATTACHMENT4 : GLenum ;
readonly COLOR_ATTACHMENT5 : GLenum ;
readonly COLOR_ATTACHMENT6 : GLenum ;
readonly COLOR_ATTACHMENT7 : GLenum ;
readonly COLOR_ATTACHMENT8 : GLenum ;
readonly COLOR_ATTACHMENT9 : GLenum ;
readonly COMPARE_REF_TO_TEXTURE : GLenum ;
readonly CONDITION_SATISFIED : GLenum ;
readonly COPY_READ_BUFFER : GLenum ;
readonly COPY_READ_BUFFER_BINDING : GLenum ;
readonly COPY_WRITE_BUFFER : GLenum ;
readonly COPY_WRITE_BUFFER_BINDING : GLenum ;
readonly CURRENT_QUERY : GLenum ;
readonly DEPTH : GLenum ;
readonly DEPTH24_STENCIL8 : GLenum ;
readonly DEPTH32F_STENCIL8 : GLenum ;
readonly DEPTH_COMPONENT24 : GLenum ;
readonly DEPTH_COMPONENT32F : GLenum ;
readonly DRAW_BUFFER0 : GLenum ;
readonly DRAW_BUFFER1 : GLenum ;
readonly DRAW_BUFFER10 : GLenum ;
readonly DRAW_BUFFER11 : GLenum ;
readonly DRAW_BUFFER12 : GLenum ;
readonly DRAW_BUFFER13 : GLenum ;
readonly DRAW_BUFFER14 : GLenum ;
readonly DRAW_BUFFER15 : GLenum ;
readonly DRAW_BUFFER2 : GLenum ;
readonly DRAW_BUFFER3 : GLenum ;
readonly DRAW_BUFFER4 : GLenum ;
readonly DRAW_BUFFER5 : GLenum ;
readonly DRAW_BUFFER6 : GLenum ;
readonly DRAW_BUFFER7 : GLenum ;
readonly DRAW_BUFFER8 : GLenum ;
readonly DRAW_BUFFER9 : GLenum ;
readonly DRAW_FRAMEBUFFER : GLenum ;
readonly DRAW_FRAMEBUFFER_BINDING : GLenum ;
readonly DYNAMIC_COPY : GLenum ;
readonly DYNAMIC_READ : GLenum ;
readonly FLOAT_32_UNSIGNED_INT_24_8_REV : GLenum ;
readonly FLOAT_MAT2x3 : GLenum ;
readonly FLOAT_MAT2x4 : GLenum ;
readonly FLOAT_MAT3x2 : GLenum ;
readonly FLOAT_MAT3x4 : GLenum ;
readonly FLOAT_MAT4x2 : GLenum ;
readonly FLOAT_MAT4x3 : GLenum ;
readonly FRAGMENT_SHADER_DERIVATIVE_HINT : GLenum ;
readonly FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE : GLenum ;
readonly FRAMEBUFFER_ATTACHMENT_BLUE_SIZE : GLenum ;
readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING : GLenum ;
readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE : GLenum ;
readonly FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE : GLenum ;
readonly FRAMEBUFFER_ATTACHMENT_GREEN_SIZE : GLenum ;
readonly FRAMEBUFFER_ATTACHMENT_RED_SIZE : GLenum ;
readonly FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE : GLenum ;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER : GLenum ;
readonly FRAMEBUFFER_DEFAULT : GLenum ;
readonly FRAMEBUFFER_INCOMPLETE_MULTISAMPLE : GLenum ;
readonly HALF_FLOAT : GLenum ;
readonly INTERLEAVED_ATTRIBS : GLenum ;
readonly INT_2_10_10_10_REV : GLenum ;
readonly INT_SAMPLER_2D : GLenum ;
readonly INT_SAMPLER_2D_ARRAY : GLenum ;
readonly INT_SAMPLER_3D : GLenum ;
readonly INT_SAMPLER_CUBE : GLenum ;
readonly INVALID_INDEX : GLenum ;
readonly MAX : GLenum ;
readonly MAX_3D_TEXTURE_SIZE : GLenum ;
readonly MAX_ARRAY_TEXTURE_LAYERS : GLenum ;
readonly MAX_CLIENT_WAIT_TIMEOUT_WEBGL : GLenum ;
readonly MAX_COLOR_ATTACHMENTS : GLenum ;
readonly MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS : GLenum ;
readonly MAX_COMBINED_UNIFORM_BLOCKS : GLenum ;
readonly MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS : GLenum ;
readonly MAX_DRAW_BUFFERS : GLenum ;
readonly MAX_ELEMENTS_INDICES : GLenum ;
readonly MAX_ELEMENTS_VERTICES : GLenum ;
readonly MAX_ELEMENT_INDEX : GLenum ;
readonly MAX_FRAGMENT_INPUT_COMPONENTS : GLenum ;
readonly MAX_FRAGMENT_UNIFORM_BLOCKS : GLenum ;
readonly MAX_FRAGMENT_UNIFORM_COMPONENTS : GLenum ;
readonly MAX_PROGRAM_TEXEL_OFFSET : GLenum ;
readonly MAX_SAMPLES : GLenum ;
readonly MAX_SERVER_WAIT_TIMEOUT : GLenum ;
readonly MAX_TEXTURE_LOD_BIAS : GLenum ;
readonly MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS : GLenum ;
readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS : GLenum ;
readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS : GLenum ;
readonly MAX_UNIFORM_BLOCK_SIZE : GLenum ;
readonly MAX_UNIFORM_BUFFER_BINDINGS : GLenum ;
readonly MAX_VARYING_COMPONENTS : GLenum ;
readonly MAX_VERTEX_OUTPUT_COMPONENTS : GLenum ;
readonly MAX_VERTEX_UNIFORM_BLOCKS : GLenum ;
readonly MAX_VERTEX_UNIFORM_COMPONENTS : GLenum ;
readonly MIN : GLenum ;
readonly MIN_PROGRAM_TEXEL_OFFSET : GLenum ;
readonly OBJECT_TYPE : GLenum ;
readonly PACK_ROW_LENGTH : GLenum ;
readonly PACK_SKIP_PIXELS : GLenum ;
readonly PACK_SKIP_ROWS : GLenum ;
readonly PIXEL_PACK_BUFFER : GLenum ;
readonly PIXEL_PACK_BUFFER_BINDING : GLenum ;
readonly PIXEL_UNPACK_BUFFER : GLenum ;
readonly PIXEL_UNPACK_BUFFER_BINDING : GLenum ;
readonly QUERY_RESULT : GLenum ;
readonly QUERY_RESULT_AVAILABLE : GLenum ;
readonly R11F_G11F_B10F : GLenum ;
readonly R16F : GLenum ;
readonly R16I : GLenum ;
readonly R16UI : GLenum ;
readonly R32F : GLenum ;
readonly R32I : GLenum ;
readonly R32UI : GLenum ;
readonly R8 : GLenum ;
readonly R8I : GLenum ;
readonly R8UI : GLenum ;
readonly R8_SNORM : GLenum ;
readonly RASTERIZER_DISCARD : GLenum ;
readonly READ_BUFFER : GLenum ;
readonly READ_FRAMEBUFFER : GLenum ;
readonly READ_FRAMEBUFFER_BINDING : GLenum ;
readonly RED : GLenum ;
readonly RED_INTEGER : GLenum ;
readonly RENDERBUFFER_SAMPLES : GLenum ;
readonly RG : GLenum ;
readonly RG16F : GLenum ;
readonly RG16I : GLenum ;
readonly RG16UI : GLenum ;
readonly RG32F : GLenum ;
readonly RG32I : GLenum ;
readonly RG32UI : GLenum ;
readonly RG8 : GLenum ;
readonly RG8I : GLenum ;
readonly RG8UI : GLenum ;
readonly RG8_SNORM : GLenum ;
readonly RGB10_A2 : GLenum ;
readonly RGB10_A2UI : GLenum ;
readonly RGB16F : GLenum ;
readonly RGB16I : GLenum ;
readonly RGB16UI : GLenum ;
readonly RGB32F : GLenum ;
readonly RGB32I : GLenum ;
readonly RGB32UI : GLenum ;
readonly RGB8 : GLenum ;
readonly RGB8I : GLenum ;
readonly RGB8UI : GLenum ;
readonly RGB8_SNORM : GLenum ;
readonly RGB9_E5 : GLenum ;
readonly RGBA16F : GLenum ;
readonly RGBA16I : GLenum ;
readonly RGBA16UI : GLenum ;
readonly RGBA32F : GLenum ;
readonly RGBA32I : GLenum ;
readonly RGBA32UI : GLenum ;
readonly RGBA8 : GLenum ;
readonly RGBA8I : GLenum ;
readonly RGBA8UI : GLenum ;
readonly RGBA8_SNORM : GLenum ;
readonly RGBA_INTEGER : GLenum ;
readonly RGB_INTEGER : GLenum ;
readonly RG_INTEGER : GLenum ;
readonly SAMPLER_2D_ARRAY : GLenum ;
readonly SAMPLER_2D_ARRAY_SHADOW : GLenum ;
readonly SAMPLER_2D_SHADOW : GLenum ;
readonly SAMPLER_3D : GLenum ;
readonly SAMPLER_BINDING : GLenum ;
readonly SAMPLER_CUBE_SHADOW : GLenum ;
readonly SEPARATE_ATTRIBS : GLenum ;
readonly SIGNALED : GLenum ;
readonly SIGNED_NORMALIZED : GLenum ;
readonly SRGB : GLenum ;
readonly SRGB8 : GLenum ;
readonly SRGB8_ALPHA8 : GLenum ;
readonly STATIC_COPY : GLenum ;
readonly STATIC_READ : GLenum ;
readonly STENCIL : GLenum ;
readonly STREAM_COPY : GLenum ;
readonly STREAM_READ : GLenum ;
readonly SYNC_CONDITION : GLenum ;
readonly SYNC_FENCE : GLenum ;
readonly SYNC_FLAGS : GLenum ;
readonly SYNC_FLUSH_COMMANDS_BIT : GLenum ;
readonly SYNC_GPU_COMMANDS_COMPLETE : GLenum ;
readonly SYNC_STATUS : GLenum ;
readonly TEXTURE_2D_ARRAY : GLenum ;
readonly TEXTURE_3D : GLenum ;
readonly TEXTURE_BASE_LEVEL : GLenum ;
readonly TEXTURE_BINDING_2D_ARRAY : GLenum ;
readonly TEXTURE_BINDING_3D : GLenum ;
readonly TEXTURE_COMPARE_FUNC : GLenum ;
readonly TEXTURE_COMPARE_MODE : GLenum ;
readonly TEXTURE_IMMUTABLE_FORMAT : GLenum ;
readonly TEXTURE_IMMUTABLE_LEVELS : GLenum ;
readonly TEXTURE_MAX_LEVEL : GLenum ;
readonly TEXTURE_MAX_LOD : GLenum ;
readonly TEXTURE_MIN_LOD : GLenum ;
readonly TEXTURE_WRAP_R : GLenum ;
readonly TIMEOUT_EXPIRED : GLenum ;
readonly TIMEOUT_IGNORED : GLint64 ;
readonly TRANSFORM_FEEDBACK : GLenum ;
readonly TRANSFORM_FEEDBACK_ACTIVE : GLenum ;
readonly TRANSFORM_FEEDBACK_BINDING : GLenum ;
readonly TRANSFORM_FEEDBACK_BUFFER : GLenum ;
readonly TRANSFORM_FEEDBACK_BUFFER_BINDING : GLenum ;
readonly TRANSFORM_FEEDBACK_BUFFER_MODE : GLenum ;
readonly TRANSFORM_FEEDBACK_BUFFER_SIZE : GLenum ;
readonly TRANSFORM_FEEDBACK_BUFFER_START : GLenum ;
readonly TRANSFORM_FEEDBACK_PAUSED : GLenum ;
readonly TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN : GLenum ;
readonly TRANSFORM_FEEDBACK_VARYINGS : GLenum ;
readonly UNIFORM_ARRAY_STRIDE : GLenum ;
readonly UNIFORM_BLOCK_ACTIVE_UNIFORMS : GLenum ;
readonly UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES : GLenum ;
readonly UNIFORM_BLOCK_BINDING : GLenum ;
readonly UNIFORM_BLOCK_DATA_SIZE : GLenum ;
readonly UNIFORM_BLOCK_INDEX : GLenum ;
readonly UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER : GLenum ;
readonly UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER : GLenum ;
readonly UNIFORM_BUFFER : GLenum ;
readonly UNIFORM_BUFFER_BINDING : GLenum ;
readonly UNIFORM_BUFFER_OFFSET_ALIGNMENT : GLenum ;
readonly UNIFORM_BUFFER_SIZE : GLenum ;
readonly UNIFORM_BUFFER_START : GLenum ;
readonly UNIFORM_IS_ROW_MAJOR : GLenum ;
readonly UNIFORM_MATRIX_STRIDE : GLenum ;
readonly UNIFORM_OFFSET : GLenum ;
readonly UNIFORM_SIZE : GLenum ;
readonly UNIFORM_TYPE : GLenum ;
readonly UNPACK_IMAGE_HEIGHT : GLenum ;
readonly UNPACK_ROW_LENGTH : GLenum ;
readonly UNPACK_SKIP_IMAGES : GLenum ;
readonly UNPACK_SKIP_PIXELS : GLenum ;
readonly UNPACK_SKIP_ROWS : GLenum ;
readonly UNSIGNALED : GLenum ;
readonly UNSIGNED_INT_10F_11F_11F_REV : GLenum ;
readonly UNSIGNED_INT_24_8 : GLenum ;
readonly UNSIGNED_INT_2_10_10_10_REV : GLenum ;
readonly UNSIGNED_INT_5_9_9_9_REV : GLenum ;
readonly UNSIGNED_INT_SAMPLER_2D : GLenum ;
readonly UNSIGNED_INT_SAMPLER_2D_ARRAY : GLenum ;
readonly UNSIGNED_INT_SAMPLER_3D : GLenum ;
readonly UNSIGNED_INT_SAMPLER_CUBE : GLenum ;
readonly UNSIGNED_INT_VEC2 : GLenum ;
readonly UNSIGNED_INT_VEC3 : GLenum ;
readonly UNSIGNED_INT_VEC4 : GLenum ;
readonly UNSIGNED_NORMALIZED : GLenum ;
readonly VERTEX_ARRAY_BINDING : GLenum ;
readonly VERTEX_ATTRIB_ARRAY_DIVISOR : GLenum ;
readonly VERTEX_ATTRIB_ARRAY_INTEGER : GLenum ;
readonly WAIT_FAILED : GLenum ;
}
interface WebGL2RenderingContextOverloads {
bufferData ( target : GLenum , size : GLsizeiptr , usage : GLenum ) : void ;
bufferData ( target : GLenum , srcData : BufferSource | null , usage : GLenum ) : void ;
bufferData ( target : GLenum , srcData : ArrayBufferView , usage : GLenum , srcOffset : GLuint , length? : GLuint ) : void ;
bufferSubData ( target : GLenum , dstByteOffset : GLintptr , srcData : BufferSource ) : void ;
bufferSubData ( target : GLenum , dstByteOffset : GLintptr , srcData : ArrayBufferView , srcOffset : GLuint , length? : GLuint ) : void ;
compressedTexImage2D ( target : GLenum , level : GLint , internalformat : GLenum , width : GLsizei , height : GLsizei , border : GLint , imageSize : GLsizei , offset : GLintptr ) : void ;
compressedTexImage2D ( target : GLenum , level : GLint , internalformat : GLenum , width : GLsizei , height : GLsizei , border : GLint , srcData : ArrayBufferView , srcOffset? : GLuint , srcLengthOverride? : GLuint ) : void ;
compressedTexSubImage2D ( target : GLenum , level : GLint , xoffset : GLint , yoffset : GLint , width : GLsizei , height : GLsizei , format : GLenum , imageSize : GLsizei , offset : GLintptr ) : void ;
compressedTexSubImage2D ( target : GLenum , level : GLint , xoffset : GLint , yoffset : GLint , width : GLsizei , height : GLsizei , format : GLenum , srcData : ArrayBufferView , srcOffset? : GLuint , srcLengthOverride? : GLuint ) : void ;
readPixels ( x : GLint , y : GLint , width : GLsizei , height : GLsizei , format : GLenum , type : GLenum , dstData : ArrayBufferView | null ) : void ;
readPixels ( x : GLint , y : GLint , width : GLsizei , height : GLsizei , format : GLenum , type : GLenum , offset : GLintptr ) : void ;
readPixels ( x : GLint , y : GLint , width : GLsizei , height : GLsizei , format : GLenum , type : GLenum , dstData : ArrayBufferView , dstOffset : GLuint ) : void ;
texImage2D ( target : GLenum , level : GLint , internalformat : GLint , width : GLsizei , height : GLsizei , border : GLint , format : GLenum , type : GLenum , pixels : ArrayBufferView | null ) : void ;
texImage2D ( target : GLenum , level : GLint , internalformat : GLint , format : GLenum , type : GLenum , source : TexImageSource ) : void ;
texImage2D ( target : GLenum , level : GLint , internalformat : GLint , width : GLsizei , height : GLsizei , border : GLint , format : GLenum , type : GLenum , pboOffset : GLintptr ) : void ;
texImage2D ( target : GLenum , level : GLint , internalformat : GLint , width : GLsizei , height : GLsizei , border : GLint , format : GLenum , type : GLenum , source : TexImageSource ) : void ;
texImage2D ( target : GLenum , level : GLint , internalformat : GLint , width : GLsizei , height : GLsizei , border : GLint , format : GLenum , type : GLenum , srcData : ArrayBufferView , srcOffset : GLuint ) : void ;
texSubImage2D ( target : GLenum , level : GLint , xoffset : GLint , yoffset : GLint , width : GLsizei , height : GLsizei , format : GLenum , type : GLenum , pixels : ArrayBufferView | null ) : void ;
texSubImage2D ( target : GLenum , level : GLint , xoffset : GLint , yoffset : GLint , format : GLenum , type : GLenum , source : TexImageSource ) : void ;
texSubImage2D ( target : GLenum , level : GLint , xoffset : GLint , yoffset : GLint , width : GLsizei , height : GLsizei , format : GLenum , type : GLenum , pboOffset : GLintptr ) : void ;
texSubImage2D ( target : GLenum , level : GLint , xoffset : GLint , yoffset : GLint , width : GLsizei , height : GLsizei , format : GLenum , type : GLenum , source : TexImageSource ) : void ;
texSubImage2D ( target : GLenum , level : GLint , xoffset : GLint , yoffset : GLint , width : GLsizei , height : GLsizei , format : GLenum , type : GLenum , srcData : ArrayBufferView , srcOffset : GLuint ) : void ;
uniform1fv ( location : WebGLUniformLocation | null , data : Float32List , srcOffset? : GLuint , srcLength? : GLuint ) : void ;
uniform1iv ( location : WebGLUniformLocation | null , data : Int32List , srcOffset? : GLuint , srcLength? : GLuint ) : void ;
uniform2fv ( location : WebGLUniformLocation | null , data : Float32List , srcOffset? : GLuint , srcLength? : GLuint ) : void ;
uniform2iv ( location : WebGLUniformLocation | null , data : Int32List , srcOffset? : GLuint , srcLength? : GLuint ) : void ;
uniform3fv ( location : WebGLUniformLocation | null , data : Float32List , srcOffset? : GLuint , srcLength? : GLuint ) : void ;
uniform3iv ( location : WebGLUniformLocation | null , data : Int32List , srcOffset? : GLuint , srcLength? : GLuint ) : void ;
uniform4fv ( location : WebGLUniformLocation | null , data : Float32List , srcOffset? : GLuint , srcLength? : GLuint ) : void ;
uniform4iv ( location : WebGLUniformLocation | null , data : Int32List , srcOffset? : GLuint , srcLength? : GLuint ) : void ;
uniformMatrix2fv ( location : WebGLUniformLocation | null , transpose : GLboolean , data : Float32List , srcOffset? : GLuint , srcLength? : GLuint ) : void ;
uniformMatrix3fv ( location : WebGLUniformLocation | null , transpose : GLboolean , data : Float32List , srcOffset? : GLuint , srcLength? : GLuint ) : void ;
uniformMatrix4fv ( location : WebGLUniformLocation | null , transpose : GLboolean , data : Float32List , srcOffset? : GLuint , srcLength? : GLuint ) : void ;
}
/** Part of the WebGL API and represents the information returned by calling the WebGLRenderingContext.getActiveAttrib() and WebGLRenderingContext.getActiveUniform() methods. */
interface WebGLActiveInfo {
readonly name : string ;
readonly size : GLint ;
readonly type : GLenum ;
}
declare var WebGLActiveInfo : {
prototype : WebGLActiveInfo ;
new ( ) : WebGLActiveInfo ;
} ;
/** Part of the WebGL API and represents an opaque buffer object storing data such as vertices or colors. */
interface WebGLBuffer extends WebGLObject {
}
declare var WebGLBuffer : {
prototype : WebGLBuffer ;
2018-11-13 01:27:38 +01:00
new ( ) : WebGLBuffer ;
} ;
2019-02-28 23:35:03 +01:00
/** The WebContextEvent interface is part of the WebGL API and is an interface for an event that is generated in response to a status change to the WebGL rendering context. */
2018-11-13 01:27:38 +01:00
interface WebGLContextEvent extends Event {
readonly statusMessage : string ;
}
declare var WebGLContextEvent : {
prototype : WebGLContextEvent ;
new ( type : string , eventInit? : WebGLContextEventInit ) : WebGLContextEvent ;
} ;
2019-07-29 19:33:43 +02:00
/** Part of the WebGL API and represents a collection of buffers that serve as a rendering destination. */
2018-11-13 01:27:38 +01:00
interface WebGLFramebuffer extends WebGLObject {
}
declare var WebGLFramebuffer : {
prototype : WebGLFramebuffer ;
new ( ) : WebGLFramebuffer ;
} ;
interface WebGLObject {
}
declare var WebGLObject : {
prototype : WebGLObject ;
new ( ) : WebGLObject ;
} ;
2019-02-28 23:35:03 +01:00
/** The WebGLProgram is part of the WebGL API and is a combination of two compiled WebGLShaders consisting of a vertex shader and a fragment shader (both written in GLSL). */
2018-11-13 01:27:38 +01:00
interface WebGLProgram extends WebGLObject {
}
declare var WebGLProgram : {
prototype : WebGLProgram ;
new ( ) : WebGLProgram ;
} ;
2019-07-29 19:33:43 +02:00
interface WebGLQuery extends WebGLObject {
}
declare var WebGLQuery : {
prototype : WebGLQuery ;
new ( ) : WebGLQuery ;
} ;
/** Part of the WebGL API and represents a buffer that can contain an image, or can be source or target of an rendering operation. */
2018-11-13 01:27:38 +01:00
interface WebGLRenderbuffer extends WebGLObject {
}
declare var WebGLRenderbuffer : {
prototype : WebGLRenderbuffer ;
new ( ) : WebGLRenderbuffer ;
} ;
2019-07-29 19:33:43 +02:00
/** Provides an interface to the OpenGL ES 2.0 graphics rendering context for the drawing surface of an HTML <canvas> element. */
interface WebGLRenderingContext extends WebGLRenderingContextBase , WebGLRenderingContextOverloads {
2018-11-13 01:27:38 +01:00
}
declare var WebGLRenderingContext : {
prototype : WebGLRenderingContext ;
new ( ) : WebGLRenderingContext ;
readonly ACTIVE_ATTRIBUTES : GLenum ;
readonly ACTIVE_TEXTURE : GLenum ;
readonly ACTIVE_UNIFORMS : GLenum ;
readonly ALIASED_LINE_WIDTH_RANGE : GLenum ;
readonly ALIASED_POINT_SIZE_RANGE : GLenum ;
readonly ALPHA : GLenum ;
readonly ALPHA_BITS : GLenum ;
readonly ALWAYS : GLenum ;
readonly ARRAY_BUFFER : GLenum ;
readonly ARRAY_BUFFER_BINDING : GLenum ;
readonly ATTACHED_SHADERS : GLenum ;
readonly BACK : GLenum ;
readonly BLEND : GLenum ;
readonly BLEND_COLOR : GLenum ;
readonly BLEND_DST_ALPHA : GLenum ;
readonly BLEND_DST_RGB : GLenum ;
readonly BLEND_EQUATION : GLenum ;
readonly BLEND_EQUATION_ALPHA : GLenum ;
readonly BLEND_EQUATION_RGB : GLenum ;
readonly BLEND_SRC_ALPHA : GLenum ;
readonly BLEND_SRC_RGB : GLenum ;
readonly BLUE_BITS : GLenum ;
readonly BOOL : GLenum ;
readonly BOOL_VEC2 : GLenum ;
readonly BOOL_VEC3 : GLenum ;
readonly BOOL_VEC4 : GLenum ;
readonly BROWSER_DEFAULT_WEBGL : GLenum ;
readonly BUFFER_SIZE : GLenum ;
readonly BUFFER_USAGE : GLenum ;
readonly BYTE : GLenum ;
readonly CCW : GLenum ;
readonly CLAMP_TO_EDGE : GLenum ;
readonly COLOR_ATTACHMENT0 : GLenum ;
readonly COLOR_BUFFER_BIT : GLenum ;
readonly COLOR_CLEAR_VALUE : GLenum ;
readonly COLOR_WRITEMASK : GLenum ;
readonly COMPILE_STATUS : GLenum ;
readonly COMPRESSED_TEXTURE_FORMATS : GLenum ;
readonly CONSTANT_ALPHA : GLenum ;
readonly CONSTANT_COLOR : GLenum ;
readonly CONTEXT_LOST_WEBGL : GLenum ;
readonly CULL_FACE : GLenum ;
readonly CULL_FACE_MODE : GLenum ;
readonly CURRENT_PROGRAM : GLenum ;
readonly CURRENT_VERTEX_ATTRIB : GLenum ;
readonly CW : GLenum ;
readonly DECR : GLenum ;
readonly DECR_WRAP : GLenum ;
readonly DELETE_STATUS : GLenum ;
readonly DEPTH_ATTACHMENT : GLenum ;
readonly DEPTH_BITS : GLenum ;
readonly DEPTH_BUFFER_BIT : GLenum ;
readonly DEPTH_CLEAR_VALUE : GLenum ;
readonly DEPTH_COMPONENT : GLenum ;
readonly DEPTH_COMPONENT16 : GLenum ;
readonly DEPTH_FUNC : GLenum ;
readonly DEPTH_RANGE : GLenum ;
readonly DEPTH_STENCIL : GLenum ;
readonly DEPTH_STENCIL_ATTACHMENT : GLenum ;
readonly DEPTH_TEST : GLenum ;
readonly DEPTH_WRITEMASK : GLenum ;
readonly DITHER : GLenum ;
readonly DONT_CARE : GLenum ;
readonly DST_ALPHA : GLenum ;
readonly DST_COLOR : GLenum ;
readonly DYNAMIC_DRAW : GLenum ;
readonly ELEMENT_ARRAY_BUFFER : GLenum ;
readonly ELEMENT_ARRAY_BUFFER_BINDING : GLenum ;
readonly EQUAL : GLenum ;
readonly FASTEST : GLenum ;
readonly FLOAT : GLenum ;
readonly FLOAT_MAT2 : GLenum ;
readonly FLOAT_MAT3 : GLenum ;
readonly FLOAT_MAT4 : GLenum ;
readonly FLOAT_VEC2 : GLenum ;
readonly FLOAT_VEC3 : GLenum ;
readonly FLOAT_VEC4 : GLenum ;
readonly FRAGMENT_SHADER : GLenum ;
readonly FRAMEBUFFER : GLenum ;
readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME : GLenum ;
readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE : GLenum ;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE : GLenum ;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL : GLenum ;
readonly FRAMEBUFFER_BINDING : GLenum ;
readonly FRAMEBUFFER_COMPLETE : GLenum ;
readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT : GLenum ;
readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS : GLenum ;
readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT : GLenum ;
readonly FRAMEBUFFER_UNSUPPORTED : GLenum ;
readonly FRONT : GLenum ;
readonly FRONT_AND_BACK : GLenum ;
readonly FRONT_FACE : GLenum ;
readonly FUNC_ADD : GLenum ;
readonly FUNC_REVERSE_SUBTRACT : GLenum ;
readonly FUNC_SUBTRACT : GLenum ;
readonly GENERATE_MIPMAP_HINT : GLenum ;
readonly GEQUAL : GLenum ;
readonly GREATER : GLenum ;
readonly GREEN_BITS : GLenum ;
readonly HIGH_FLOAT : GLenum ;
readonly HIGH_INT : GLenum ;
readonly IMPLEMENTATION_COLOR_READ_FORMAT : GLenum ;
readonly IMPLEMENTATION_COLOR_READ_TYPE : GLenum ;
readonly INCR : GLenum ;
readonly INCR_WRAP : GLenum ;
readonly INT : GLenum ;
readonly INT_VEC2 : GLenum ;
readonly INT_VEC3 : GLenum ;
readonly INT_VEC4 : GLenum ;
readonly INVALID_ENUM : GLenum ;
readonly INVALID_FRAMEBUFFER_OPERATION : GLenum ;
readonly INVALID_OPERATION : GLenum ;
readonly INVALID_VALUE : GLenum ;
readonly INVERT : GLenum ;
readonly KEEP : GLenum ;
readonly LEQUAL : GLenum ;
readonly LESS : GLenum ;
readonly LINEAR : GLenum ;
readonly LINEAR_MIPMAP_LINEAR : GLenum ;
readonly LINEAR_MIPMAP_NEAREST : GLenum ;
readonly LINES : GLenum ;
readonly LINE_LOOP : GLenum ;
readonly LINE_STRIP : GLenum ;
readonly LINE_WIDTH : GLenum ;
readonly LINK_STATUS : GLenum ;
readonly LOW_FLOAT : GLenum ;
readonly LOW_INT : GLenum ;
readonly LUMINANCE : GLenum ;
readonly LUMINANCE_ALPHA : GLenum ;
readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS : GLenum ;
readonly MAX_CUBE_MAP_TEXTURE_SIZE : GLenum ;
readonly MAX_FRAGMENT_UNIFORM_VECTORS : GLenum ;
readonly MAX_RENDERBUFFER_SIZE : GLenum ;
readonly MAX_TEXTURE_IMAGE_UNITS : GLenum ;
readonly MAX_TEXTURE_SIZE : GLenum ;
readonly MAX_VARYING_VECTORS : GLenum ;
readonly MAX_VERTEX_ATTRIBS : GLenum ;
readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS : GLenum ;
readonly MAX_VERTEX_UNIFORM_VECTORS : GLenum ;
readonly MAX_VIEWPORT_DIMS : GLenum ;
readonly MEDIUM_FLOAT : GLenum ;
readonly MEDIUM_INT : GLenum ;
readonly MIRRORED_REPEAT : GLenum ;
readonly NEAREST : GLenum ;
readonly NEAREST_MIPMAP_LINEAR : GLenum ;
readonly NEAREST_MIPMAP_NEAREST : GLenum ;
readonly NEVER : GLenum ;
readonly NICEST : GLenum ;
readonly NONE : GLenum ;
readonly NOTEQUAL : GLenum ;
readonly NO_ERROR : GLenum ;
readonly ONE : GLenum ;
readonly ONE_MINUS_CONSTANT_ALPHA : GLenum ;
readonly ONE_MINUS_CONSTANT_COLOR : GLenum ;
readonly ONE_MINUS_DST_ALPHA : GLenum ;
readonly ONE_MINUS_DST_COLOR : GLenum ;
readonly ONE_MINUS_SRC_ALPHA : GLenum ;
readonly ONE_MINUS_SRC_COLOR : GLenum ;
readonly OUT_OF_MEMORY : GLenum ;
readonly PACK_ALIGNMENT : GLenum ;
readonly POINTS : GLenum ;
readonly POLYGON_OFFSET_FACTOR : GLenum ;
readonly POLYGON_OFFSET_FILL : GLenum ;
readonly POLYGON_OFFSET_UNITS : GLenum ;
readonly RED_BITS : GLenum ;
readonly RENDERBUFFER : GLenum ;
readonly RENDERBUFFER_ALPHA_SIZE : GLenum ;
readonly RENDERBUFFER_BINDING : GLenum ;
readonly RENDERBUFFER_BLUE_SIZE : GLenum ;
readonly RENDERBUFFER_DEPTH_SIZE : GLenum ;
readonly RENDERBUFFER_GREEN_SIZE : GLenum ;
readonly RENDERBUFFER_HEIGHT : GLenum ;
readonly RENDERBUFFER_INTERNAL_FORMAT : GLenum ;
readonly RENDERBUFFER_RED_SIZE : GLenum ;
readonly RENDERBUFFER_STENCIL_SIZE : GLenum ;
readonly RENDERBUFFER_WIDTH : GLenum ;
readonly RENDERER : GLenum ;
readonly REPEAT : GLenum ;
readonly REPLACE : GLenum ;
readonly RGB : GLenum ;
readonly RGB565 : GLenum ;
readonly RGB5_A1 : GLenum ;
readonly RGBA : GLenum ;
readonly RGBA4 : GLenum ;
readonly SAMPLER_2D : GLenum ;
readonly SAMPLER_CUBE : GLenum ;
readonly SAMPLES : GLenum ;
readonly SAMPLE_ALPHA_TO_COVERAGE : GLenum ;
readonly SAMPLE_BUFFERS : GLenum ;
readonly SAMPLE_COVERAGE : GLenum ;
readonly SAMPLE_COVERAGE_INVERT : GLenum ;
readonly SAMPLE_COVERAGE_VALUE : GLenum ;
readonly SCISSOR_BOX : GLenum ;
readonly SCISSOR_TEST : GLenum ;
readonly SHADER_TYPE : GLenum ;
readonly SHADING_LANGUAGE_VERSION : GLenum ;
readonly SHORT : GLenum ;
readonly SRC_ALPHA : GLenum ;
readonly SRC_ALPHA_SATURATE : GLenum ;
readonly SRC_COLOR : GLenum ;
readonly STATIC_DRAW : GLenum ;
readonly STENCIL_ATTACHMENT : GLenum ;
readonly STENCIL_BACK_FAIL : GLenum ;
readonly STENCIL_BACK_FUNC : GLenum ;
readonly STENCIL_BACK_PASS_DEPTH_FAIL : GLenum ;
readonly STENCIL_BACK_PASS_DEPTH_PASS : GLenum ;
readonly STENCIL_BACK_REF : GLenum ;
readonly STENCIL_BACK_VALUE_MASK : GLenum ;
readonly STENCIL_BACK_WRITEMASK : GLenum ;
readonly STENCIL_BITS : GLenum ;
readonly STENCIL_BUFFER_BIT : GLenum ;
readonly STENCIL_CLEAR_VALUE : GLenum ;
readonly STENCIL_FAIL : GLenum ;
readonly STENCIL_FUNC : GLenum ;
readonly STENCIL_INDEX8 : GLenum ;
readonly STENCIL_PASS_DEPTH_FAIL : GLenum ;
readonly STENCIL_PASS_DEPTH_PASS : GLenum ;
readonly STENCIL_REF : GLenum ;
readonly STENCIL_TEST : GLenum ;
readonly STENCIL_VALUE_MASK : GLenum ;
readonly STENCIL_WRITEMASK : GLenum ;
readonly STREAM_DRAW : GLenum ;
readonly SUBPIXEL_BITS : GLenum ;
readonly TEXTURE : GLenum ;
readonly TEXTURE0 : GLenum ;
readonly TEXTURE1 : GLenum ;
readonly TEXTURE10 : GLenum ;
readonly TEXTURE11 : GLenum ;
readonly TEXTURE12 : GLenum ;
readonly TEXTURE13 : GLenum ;
readonly TEXTURE14 : GLenum ;
readonly TEXTURE15 : GLenum ;
readonly TEXTURE16 : GLenum ;
readonly TEXTURE17 : GLenum ;
readonly TEXTURE18 : GLenum ;
readonly TEXTURE19 : GLenum ;
readonly TEXTURE2 : GLenum ;
readonly TEXTURE20 : GLenum ;
readonly TEXTURE21 : GLenum ;
readonly TEXTURE22 : GLenum ;
readonly TEXTURE23 : GLenum ;
readonly TEXTURE24 : GLenum ;
readonly TEXTURE25 : GLenum ;
readonly TEXTURE26 : GLenum ;
readonly TEXTURE27 : GLenum ;
readonly TEXTURE28 : GLenum ;
readonly TEXTURE29 : GLenum ;
readonly TEXTURE3 : GLenum ;
readonly TEXTURE30 : GLenum ;
readonly TEXTURE31 : GLenum ;
readonly TEXTURE4 : GLenum ;
readonly TEXTURE5 : GLenum ;
readonly TEXTURE6 : GLenum ;
readonly TEXTURE7 : GLenum ;
readonly TEXTURE8 : GLenum ;
readonly TEXTURE9 : GLenum ;
readonly TEXTURE_2D : GLenum ;
readonly TEXTURE_BINDING_2D : GLenum ;
readonly TEXTURE_BINDING_CUBE_MAP : GLenum ;
readonly TEXTURE_CUBE_MAP : GLenum ;
readonly TEXTURE_CUBE_MAP_NEGATIVE_X : GLenum ;
readonly TEXTURE_CUBE_MAP_NEGATIVE_Y : GLenum ;
readonly TEXTURE_CUBE_MAP_NEGATIVE_Z : GLenum ;
readonly TEXTURE_CUBE_MAP_POSITIVE_X : GLenum ;
readonly TEXTURE_CUBE_MAP_POSITIVE_Y : GLenum ;
readonly TEXTURE_CUBE_MAP_POSITIVE_Z : GLenum ;
readonly TEXTURE_MAG_FILTER : GLenum ;
readonly TEXTURE_MIN_FILTER : GLenum ;
readonly TEXTURE_WRAP_S : GLenum ;
readonly TEXTURE_WRAP_T : GLenum ;
readonly TRIANGLES : GLenum ;
readonly TRIANGLE_FAN : GLenum ;
readonly TRIANGLE_STRIP : GLenum ;
readonly UNPACK_ALIGNMENT : GLenum ;
readonly UNPACK_COLORSPACE_CONVERSION_WEBGL : GLenum ;
readonly UNPACK_FLIP_Y_WEBGL : GLenum ;
readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL : GLenum ;
readonly UNSIGNED_BYTE : GLenum ;
readonly UNSIGNED_INT : GLenum ;
readonly UNSIGNED_SHORT : GLenum ;
readonly UNSIGNED_SHORT_4_4_4_4 : GLenum ;
readonly UNSIGNED_SHORT_5_5_5_1 : GLenum ;
readonly UNSIGNED_SHORT_5_6_5 : GLenum ;
readonly VALIDATE_STATUS : GLenum ;
readonly VENDOR : GLenum ;
readonly VERSION : GLenum ;
readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING : GLenum ;
readonly VERTEX_ATTRIB_ARRAY_ENABLED : GLenum ;
readonly VERTEX_ATTRIB_ARRAY_NORMALIZED : GLenum ;
readonly VERTEX_ATTRIB_ARRAY_POINTER : GLenum ;
readonly VERTEX_ATTRIB_ARRAY_SIZE : GLenum ;
readonly VERTEX_ATTRIB_ARRAY_STRIDE : GLenum ;
readonly VERTEX_ATTRIB_ARRAY_TYPE : GLenum ;
readonly VERTEX_SHADER : GLenum ;
readonly VIEWPORT : GLenum ;
readonly ZERO : GLenum ;
} ;
interface WebGLRenderingContextBase {
2019-07-29 19:33:43 +02:00
readonly canvas : OffscreenCanvas ;
2018-11-13 01:27:38 +01:00
readonly drawingBufferHeight : GLsizei ;
readonly drawingBufferWidth : GLsizei ;
activeTexture ( texture : GLenum ) : void ;
attachShader ( program : WebGLProgram , shader : WebGLShader ) : void ;
bindAttribLocation ( program : WebGLProgram , index : GLuint , name : string ) : void ;
bindBuffer ( target : GLenum , buffer : WebGLBuffer | null ) : void ;
bindFramebuffer ( target : GLenum , framebuffer : WebGLFramebuffer | null ) : void ;
bindRenderbuffer ( target : GLenum , renderbuffer : WebGLRenderbuffer | null ) : void ;
bindTexture ( target : GLenum , texture : WebGLTexture | null ) : void ;
blendColor ( red : GLclampf , green : GLclampf , blue : GLclampf , alpha : GLclampf ) : void ;
blendEquation ( mode : GLenum ) : void ;
blendEquationSeparate ( modeRGB : GLenum , modeAlpha : GLenum ) : void ;
blendFunc ( sfactor : GLenum , dfactor : GLenum ) : void ;
blendFuncSeparate ( srcRGB : GLenum , dstRGB : GLenum , srcAlpha : GLenum , dstAlpha : GLenum ) : void ;
checkFramebufferStatus ( target : GLenum ) : GLenum ;
clear ( mask : GLbitfield ) : void ;
clearColor ( red : GLclampf , green : GLclampf , blue : GLclampf , alpha : GLclampf ) : void ;
clearDepth ( depth : GLclampf ) : void ;
clearStencil ( s : GLint ) : void ;
colorMask ( red : GLboolean , green : GLboolean , blue : GLboolean , alpha : GLboolean ) : void ;
compileShader ( shader : WebGLShader ) : void ;
copyTexImage2D ( target : GLenum , level : GLint , internalformat : GLenum , x : GLint , y : GLint , width : GLsizei , height : GLsizei , border : GLint ) : void ;
copyTexSubImage2D ( target : GLenum , level : GLint , xoffset : GLint , yoffset : GLint , x : GLint , y : GLint , width : GLsizei , height : GLsizei ) : void ;
createBuffer ( ) : WebGLBuffer | null ;
createFramebuffer ( ) : WebGLFramebuffer | null ;
createProgram ( ) : WebGLProgram | null ;
createRenderbuffer ( ) : WebGLRenderbuffer | null ;
createShader ( type : GLenum ) : WebGLShader | null ;
createTexture ( ) : WebGLTexture | null ;
cullFace ( mode : GLenum ) : void ;
deleteBuffer ( buffer : WebGLBuffer | null ) : void ;
deleteFramebuffer ( framebuffer : WebGLFramebuffer | null ) : void ;
deleteProgram ( program : WebGLProgram | null ) : void ;
deleteRenderbuffer ( renderbuffer : WebGLRenderbuffer | null ) : void ;
deleteShader ( shader : WebGLShader | null ) : void ;
deleteTexture ( texture : WebGLTexture | null ) : void ;
depthFunc ( func : GLenum ) : void ;
depthMask ( flag : GLboolean ) : void ;
depthRange ( zNear : GLclampf , zFar : GLclampf ) : void ;
detachShader ( program : WebGLProgram , shader : WebGLShader ) : void ;
disable ( cap : GLenum ) : void ;
disableVertexAttribArray ( index : GLuint ) : void ;
drawArrays ( mode : GLenum , first : GLint , count : GLsizei ) : void ;
drawElements ( mode : GLenum , count : GLsizei , type : GLenum , offset : GLintptr ) : void ;
enable ( cap : GLenum ) : void ;
enableVertexAttribArray ( index : GLuint ) : void ;
finish ( ) : void ;
flush ( ) : void ;
framebufferRenderbuffer ( target : GLenum , attachment : GLenum , renderbuffertarget : GLenum , renderbuffer : WebGLRenderbuffer | null ) : void ;
framebufferTexture2D ( target : GLenum , attachment : GLenum , textarget : GLenum , texture : WebGLTexture | null , level : GLint ) : void ;
frontFace ( mode : GLenum ) : void ;
generateMipmap ( target : GLenum ) : void ;
getActiveAttrib ( program : WebGLProgram , index : GLuint ) : WebGLActiveInfo | null ;
getActiveUniform ( program : WebGLProgram , index : GLuint ) : WebGLActiveInfo | null ;
getAttachedShaders ( program : WebGLProgram ) : WebGLShader [ ] | null ;
getAttribLocation ( program : WebGLProgram , name : string ) : GLint ;
getBufferParameter ( target : GLenum , pname : GLenum ) : any ;
getContextAttributes ( ) : WebGLContextAttributes | null ;
getError ( ) : GLenum ;
getExtension ( extensionName : "EXT_blend_minmax" ) : EXT_blend_minmax | null ;
getExtension ( extensionName : "EXT_texture_filter_anisotropic" ) : EXT_texture_filter_anisotropic | null ;
getExtension ( extensionName : "EXT_frag_depth" ) : EXT_frag_depth | null ;
getExtension ( extensionName : "EXT_shader_texture_lod" ) : EXT_shader_texture_lod | null ;
getExtension ( extensionName : "EXT_sRGB" ) : EXT_sRGB | null ;
getExtension ( extensionName : "OES_vertex_array_object" ) : OES_vertex_array_object | null ;
getExtension ( extensionName : "WEBGL_color_buffer_float" ) : WEBGL_color_buffer_float | null ;
getExtension ( extensionName : "WEBGL_compressed_texture_astc" ) : WEBGL_compressed_texture_astc | null ;
getExtension ( extensionName : "WEBGL_compressed_texture_s3tc_srgb" ) : WEBGL_compressed_texture_s3tc_srgb | null ;
getExtension ( extensionName : "WEBGL_debug_shaders" ) : WEBGL_debug_shaders | null ;
getExtension ( extensionName : "WEBGL_draw_buffers" ) : WEBGL_draw_buffers | null ;
getExtension ( extensionName : "WEBGL_lose_context" ) : WEBGL_lose_context | null ;
getExtension ( extensionName : "WEBGL_depth_texture" ) : WEBGL_depth_texture | null ;
getExtension ( extensionName : "WEBGL_debug_renderer_info" ) : WEBGL_debug_renderer_info | null ;
getExtension ( extensionName : "WEBGL_compressed_texture_s3tc" ) : WEBGL_compressed_texture_s3tc | null ;
getExtension ( extensionName : "OES_texture_half_float_linear" ) : OES_texture_half_float_linear | null ;
getExtension ( extensionName : "OES_texture_half_float" ) : OES_texture_half_float | null ;
getExtension ( extensionName : "OES_texture_float_linear" ) : OES_texture_float_linear | null ;
getExtension ( extensionName : "OES_texture_float" ) : OES_texture_float | null ;
getExtension ( extensionName : "OES_standard_derivatives" ) : OES_standard_derivatives | null ;
getExtension ( extensionName : "OES_element_index_uint" ) : OES_element_index_uint | null ;
getExtension ( extensionName : "ANGLE_instanced_arrays" ) : ANGLE_instanced_arrays | null ;
getExtension ( extensionName : string ) : any ;
getFramebufferAttachmentParameter ( target : GLenum , attachment : GLenum , pname : GLenum ) : any ;
getParameter ( pname : GLenum ) : any ;
getProgramInfoLog ( program : WebGLProgram ) : string | null ;
getProgramParameter ( program : WebGLProgram , pname : GLenum ) : any ;
getRenderbufferParameter ( target : GLenum , pname : GLenum ) : any ;
getShaderInfoLog ( shader : WebGLShader ) : string | null ;
getShaderParameter ( shader : WebGLShader , pname : GLenum ) : any ;
getShaderPrecisionFormat ( shadertype : GLenum , precisiontype : GLenum ) : WebGLShaderPrecisionFormat | null ;
getShaderSource ( shader : WebGLShader ) : string | null ;
getSupportedExtensions ( ) : string [ ] | null ;
getTexParameter ( target : GLenum , pname : GLenum ) : any ;
getUniform ( program : WebGLProgram , location : WebGLUniformLocation ) : any ;
getUniformLocation ( program : WebGLProgram , name : string ) : WebGLUniformLocation | null ;
getVertexAttrib ( index : GLuint , pname : GLenum ) : any ;
getVertexAttribOffset ( index : GLuint , pname : GLenum ) : GLintptr ;
hint ( target : GLenum , mode : GLenum ) : void ;
isBuffer ( buffer : WebGLBuffer | null ) : GLboolean ;
isContextLost ( ) : boolean ;
isEnabled ( cap : GLenum ) : GLboolean ;
isFramebuffer ( framebuffer : WebGLFramebuffer | null ) : GLboolean ;
isProgram ( program : WebGLProgram | null ) : GLboolean ;
isRenderbuffer ( renderbuffer : WebGLRenderbuffer | null ) : GLboolean ;
isShader ( shader : WebGLShader | null ) : GLboolean ;
isTexture ( texture : WebGLTexture | null ) : GLboolean ;
lineWidth ( width : GLfloat ) : void ;
linkProgram ( program : WebGLProgram ) : void ;
2019-02-28 23:35:03 +01:00
pixelStorei ( pname : GLenum , param : GLint | GLboolean ) : void ;
2018-11-13 01:27:38 +01:00
polygonOffset ( factor : GLfloat , units : GLfloat ) : void ;
renderbufferStorage ( target : GLenum , internalformat : GLenum , width : GLsizei , height : GLsizei ) : void ;
sampleCoverage ( value : GLclampf , invert : GLboolean ) : void ;
scissor ( x : GLint , y : GLint , width : GLsizei , height : GLsizei ) : void ;
shaderSource ( shader : WebGLShader , source : string ) : void ;
stencilFunc ( func : GLenum , ref : GLint , mask : GLuint ) : void ;
stencilFuncSeparate ( face : GLenum , func : GLenum , ref : GLint , mask : GLuint ) : void ;
stencilMask ( mask : GLuint ) : void ;
stencilMaskSeparate ( face : GLenum , mask : GLuint ) : void ;
stencilOp ( fail : GLenum , zfail : GLenum , zpass : GLenum ) : void ;
stencilOpSeparate ( face : GLenum , fail : GLenum , zfail : GLenum , zpass : GLenum ) : void ;
texParameterf ( target : GLenum , pname : GLenum , param : GLfloat ) : void ;
texParameteri ( target : GLenum , pname : GLenum , param : GLint ) : void ;
uniform1f ( location : WebGLUniformLocation | null , x : GLfloat ) : void ;
uniform1i ( location : WebGLUniformLocation | null , x : GLint ) : void ;
uniform2f ( location : WebGLUniformLocation | null , x : GLfloat , y : GLfloat ) : void ;
uniform2i ( location : WebGLUniformLocation | null , x : GLint , y : GLint ) : void ;
uniform3f ( location : WebGLUniformLocation | null , x : GLfloat , y : GLfloat , z : GLfloat ) : void ;
uniform3i ( location : WebGLUniformLocation | null , x : GLint , y : GLint , z : GLint ) : void ;
uniform4f ( location : WebGLUniformLocation | null , x : GLfloat , y : GLfloat , z : GLfloat , w : GLfloat ) : void ;
uniform4i ( location : WebGLUniformLocation | null , x : GLint , y : GLint , z : GLint , w : GLint ) : void ;
useProgram ( program : WebGLProgram | null ) : void ;
validateProgram ( program : WebGLProgram ) : void ;
vertexAttrib1f ( index : GLuint , x : GLfloat ) : void ;
vertexAttrib1fv ( index : GLuint , values : Float32List ) : void ;
vertexAttrib2f ( index : GLuint , x : GLfloat , y : GLfloat ) : void ;
vertexAttrib2fv ( index : GLuint , values : Float32List ) : void ;
vertexAttrib3f ( index : GLuint , x : GLfloat , y : GLfloat , z : GLfloat ) : void ;
vertexAttrib3fv ( index : GLuint , values : Float32List ) : void ;
vertexAttrib4f ( index : GLuint , x : GLfloat , y : GLfloat , z : GLfloat , w : GLfloat ) : void ;
vertexAttrib4fv ( index : GLuint , values : Float32List ) : void ;
vertexAttribPointer ( index : GLuint , size : GLint , type : GLenum , normalized : GLboolean , stride : GLsizei , offset : GLintptr ) : void ;
viewport ( x : GLint , y : GLint , width : GLsizei , height : GLsizei ) : void ;
readonly ACTIVE_ATTRIBUTES : GLenum ;
readonly ACTIVE_TEXTURE : GLenum ;
readonly ACTIVE_UNIFORMS : GLenum ;
readonly ALIASED_LINE_WIDTH_RANGE : GLenum ;
readonly ALIASED_POINT_SIZE_RANGE : GLenum ;
readonly ALPHA : GLenum ;
readonly ALPHA_BITS : GLenum ;
readonly ALWAYS : GLenum ;
readonly ARRAY_BUFFER : GLenum ;
readonly ARRAY_BUFFER_BINDING : GLenum ;
readonly ATTACHED_SHADERS : GLenum ;
readonly BACK : GLenum ;
readonly BLEND : GLenum ;
readonly BLEND_COLOR : GLenum ;
readonly BLEND_DST_ALPHA : GLenum ;
readonly BLEND_DST_RGB : GLenum ;
readonly BLEND_EQUATION : GLenum ;
readonly BLEND_EQUATION_ALPHA : GLenum ;
readonly BLEND_EQUATION_RGB : GLenum ;
readonly BLEND_SRC_ALPHA : GLenum ;
readonly BLEND_SRC_RGB : GLenum ;
readonly BLUE_BITS : GLenum ;
readonly BOOL : GLenum ;
readonly BOOL_VEC2 : GLenum ;
readonly BOOL_VEC3 : GLenum ;
readonly BOOL_VEC4 : GLenum ;
readonly BROWSER_DEFAULT_WEBGL : GLenum ;
readonly BUFFER_SIZE : GLenum ;
readonly BUFFER_USAGE : GLenum ;
readonly BYTE : GLenum ;
readonly CCW : GLenum ;
readonly CLAMP_TO_EDGE : GLenum ;
readonly COLOR_ATTACHMENT0 : GLenum ;
readonly COLOR_BUFFER_BIT : GLenum ;
readonly COLOR_CLEAR_VALUE : GLenum ;
readonly COLOR_WRITEMASK : GLenum ;
readonly COMPILE_STATUS : GLenum ;
readonly COMPRESSED_TEXTURE_FORMATS : GLenum ;
readonly CONSTANT_ALPHA : GLenum ;
readonly CONSTANT_COLOR : GLenum ;
readonly CONTEXT_LOST_WEBGL : GLenum ;
readonly CULL_FACE : GLenum ;
readonly CULL_FACE_MODE : GLenum ;
readonly CURRENT_PROGRAM : GLenum ;
readonly CURRENT_VERTEX_ATTRIB : GLenum ;
readonly CW : GLenum ;
readonly DECR : GLenum ;
readonly DECR_WRAP : GLenum ;
readonly DELETE_STATUS : GLenum ;
readonly DEPTH_ATTACHMENT : GLenum ;
readonly DEPTH_BITS : GLenum ;
readonly DEPTH_BUFFER_BIT : GLenum ;
readonly DEPTH_CLEAR_VALUE : GLenum ;
readonly DEPTH_COMPONENT : GLenum ;
readonly DEPTH_COMPONENT16 : GLenum ;
readonly DEPTH_FUNC : GLenum ;
readonly DEPTH_RANGE : GLenum ;
readonly DEPTH_STENCIL : GLenum ;
readonly DEPTH_STENCIL_ATTACHMENT : GLenum ;
readonly DEPTH_TEST : GLenum ;
readonly DEPTH_WRITEMASK : GLenum ;
readonly DITHER : GLenum ;
readonly DONT_CARE : GLenum ;
readonly DST_ALPHA : GLenum ;
readonly DST_COLOR : GLenum ;
readonly DYNAMIC_DRAW : GLenum ;
readonly ELEMENT_ARRAY_BUFFER : GLenum ;
readonly ELEMENT_ARRAY_BUFFER_BINDING : GLenum ;
readonly EQUAL : GLenum ;
readonly FASTEST : GLenum ;
readonly FLOAT : GLenum ;
readonly FLOAT_MAT2 : GLenum ;
readonly FLOAT_MAT3 : GLenum ;
readonly FLOAT_MAT4 : GLenum ;
readonly FLOAT_VEC2 : GLenum ;
readonly FLOAT_VEC3 : GLenum ;
readonly FLOAT_VEC4 : GLenum ;
readonly FRAGMENT_SHADER : GLenum ;
readonly FRAMEBUFFER : GLenum ;
readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME : GLenum ;
readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE : GLenum ;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE : GLenum ;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL : GLenum ;
readonly FRAMEBUFFER_BINDING : GLenum ;
readonly FRAMEBUFFER_COMPLETE : GLenum ;
readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT : GLenum ;
readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS : GLenum ;
readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT : GLenum ;
readonly FRAMEBUFFER_UNSUPPORTED : GLenum ;
readonly FRONT : GLenum ;
readonly FRONT_AND_BACK : GLenum ;
readonly FRONT_FACE : GLenum ;
readonly FUNC_ADD : GLenum ;
readonly FUNC_REVERSE_SUBTRACT : GLenum ;
readonly FUNC_SUBTRACT : GLenum ;
readonly GENERATE_MIPMAP_HINT : GLenum ;
readonly GEQUAL : GLenum ;
readonly GREATER : GLenum ;
readonly GREEN_BITS : GLenum ;
readonly HIGH_FLOAT : GLenum ;
readonly HIGH_INT : GLenum ;
readonly IMPLEMENTATION_COLOR_READ_FORMAT : GLenum ;
readonly IMPLEMENTATION_COLOR_READ_TYPE : GLenum ;
readonly INCR : GLenum ;
readonly INCR_WRAP : GLenum ;
readonly INT : GLenum ;
readonly INT_VEC2 : GLenum ;
readonly INT_VEC3 : GLenum ;
readonly INT_VEC4 : GLenum ;
readonly INVALID_ENUM : GLenum ;
readonly INVALID_FRAMEBUFFER_OPERATION : GLenum ;
readonly INVALID_OPERATION : GLenum ;
readonly INVALID_VALUE : GLenum ;
readonly INVERT : GLenum ;
readonly KEEP : GLenum ;
readonly LEQUAL : GLenum ;
readonly LESS : GLenum ;
readonly LINEAR : GLenum ;
readonly LINEAR_MIPMAP_LINEAR : GLenum ;
readonly LINEAR_MIPMAP_NEAREST : GLenum ;
readonly LINES : GLenum ;
readonly LINE_LOOP : GLenum ;
readonly LINE_STRIP : GLenum ;
readonly LINE_WIDTH : GLenum ;
readonly LINK_STATUS : GLenum ;
readonly LOW_FLOAT : GLenum ;
readonly LOW_INT : GLenum ;
readonly LUMINANCE : GLenum ;
readonly LUMINANCE_ALPHA : GLenum ;
readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS : GLenum ;
readonly MAX_CUBE_MAP_TEXTURE_SIZE : GLenum ;
readonly MAX_FRAGMENT_UNIFORM_VECTORS : GLenum ;
readonly MAX_RENDERBUFFER_SIZE : GLenum ;
readonly MAX_TEXTURE_IMAGE_UNITS : GLenum ;
readonly MAX_TEXTURE_SIZE : GLenum ;
readonly MAX_VARYING_VECTORS : GLenum ;
readonly MAX_VERTEX_ATTRIBS : GLenum ;
readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS : GLenum ;
readonly MAX_VERTEX_UNIFORM_VECTORS : GLenum ;
readonly MAX_VIEWPORT_DIMS : GLenum ;
readonly MEDIUM_FLOAT : GLenum ;
readonly MEDIUM_INT : GLenum ;
readonly MIRRORED_REPEAT : GLenum ;
readonly NEAREST : GLenum ;
readonly NEAREST_MIPMAP_LINEAR : GLenum ;
readonly NEAREST_MIPMAP_NEAREST : GLenum ;
readonly NEVER : GLenum ;
readonly NICEST : GLenum ;
readonly NONE : GLenum ;
readonly NOTEQUAL : GLenum ;
readonly NO_ERROR : GLenum ;
readonly ONE : GLenum ;
readonly ONE_MINUS_CONSTANT_ALPHA : GLenum ;
readonly ONE_MINUS_CONSTANT_COLOR : GLenum ;
readonly ONE_MINUS_DST_ALPHA : GLenum ;
readonly ONE_MINUS_DST_COLOR : GLenum ;
readonly ONE_MINUS_SRC_ALPHA : GLenum ;
readonly ONE_MINUS_SRC_COLOR : GLenum ;
readonly OUT_OF_MEMORY : GLenum ;
readonly PACK_ALIGNMENT : GLenum ;
readonly POINTS : GLenum ;
readonly POLYGON_OFFSET_FACTOR : GLenum ;
readonly POLYGON_OFFSET_FILL : GLenum ;
readonly POLYGON_OFFSET_UNITS : GLenum ;
readonly RED_BITS : GLenum ;
readonly RENDERBUFFER : GLenum ;
readonly RENDERBUFFER_ALPHA_SIZE : GLenum ;
readonly RENDERBUFFER_BINDING : GLenum ;
readonly RENDERBUFFER_BLUE_SIZE : GLenum ;
readonly RENDERBUFFER_DEPTH_SIZE : GLenum ;
readonly RENDERBUFFER_GREEN_SIZE : GLenum ;
readonly RENDERBUFFER_HEIGHT : GLenum ;
readonly RENDERBUFFER_INTERNAL_FORMAT : GLenum ;
readonly RENDERBUFFER_RED_SIZE : GLenum ;
readonly RENDERBUFFER_STENCIL_SIZE : GLenum ;
readonly RENDERBUFFER_WIDTH : GLenum ;
readonly RENDERER : GLenum ;
readonly REPEAT : GLenum ;
readonly REPLACE : GLenum ;
readonly RGB : GLenum ;
readonly RGB565 : GLenum ;
readonly RGB5_A1 : GLenum ;
readonly RGBA : GLenum ;
readonly RGBA4 : GLenum ;
readonly SAMPLER_2D : GLenum ;
readonly SAMPLER_CUBE : GLenum ;
readonly SAMPLES : GLenum ;
readonly SAMPLE_ALPHA_TO_COVERAGE : GLenum ;
readonly SAMPLE_BUFFERS : GLenum ;
readonly SAMPLE_COVERAGE : GLenum ;
readonly SAMPLE_COVERAGE_INVERT : GLenum ;
readonly SAMPLE_COVERAGE_VALUE : GLenum ;
readonly SCISSOR_BOX : GLenum ;
readonly SCISSOR_TEST : GLenum ;
readonly SHADER_TYPE : GLenum ;
readonly SHADING_LANGUAGE_VERSION : GLenum ;
readonly SHORT : GLenum ;
readonly SRC_ALPHA : GLenum ;
readonly SRC_ALPHA_SATURATE : GLenum ;
readonly SRC_COLOR : GLenum ;
readonly STATIC_DRAW : GLenum ;
readonly STENCIL_ATTACHMENT : GLenum ;
readonly STENCIL_BACK_FAIL : GLenum ;
readonly STENCIL_BACK_FUNC : GLenum ;
readonly STENCIL_BACK_PASS_DEPTH_FAIL : GLenum ;
readonly STENCIL_BACK_PASS_DEPTH_PASS : GLenum ;
readonly STENCIL_BACK_REF : GLenum ;
readonly STENCIL_BACK_VALUE_MASK : GLenum ;
readonly STENCIL_BACK_WRITEMASK : GLenum ;
readonly STENCIL_BITS : GLenum ;
readonly STENCIL_BUFFER_BIT : GLenum ;
readonly STENCIL_CLEAR_VALUE : GLenum ;
readonly STENCIL_FAIL : GLenum ;
readonly STENCIL_FUNC : GLenum ;
readonly STENCIL_INDEX8 : GLenum ;
readonly STENCIL_PASS_DEPTH_FAIL : GLenum ;
readonly STENCIL_PASS_DEPTH_PASS : GLenum ;
readonly STENCIL_REF : GLenum ;
readonly STENCIL_TEST : GLenum ;
readonly STENCIL_VALUE_MASK : GLenum ;
readonly STENCIL_WRITEMASK : GLenum ;
readonly STREAM_DRAW : GLenum ;
readonly SUBPIXEL_BITS : GLenum ;
readonly TEXTURE : GLenum ;
readonly TEXTURE0 : GLenum ;
readonly TEXTURE1 : GLenum ;
readonly TEXTURE10 : GLenum ;
readonly TEXTURE11 : GLenum ;
readonly TEXTURE12 : GLenum ;
readonly TEXTURE13 : GLenum ;
readonly TEXTURE14 : GLenum ;
readonly TEXTURE15 : GLenum ;
readonly TEXTURE16 : GLenum ;
readonly TEXTURE17 : GLenum ;
readonly TEXTURE18 : GLenum ;
readonly TEXTURE19 : GLenum ;
readonly TEXTURE2 : GLenum ;
readonly TEXTURE20 : GLenum ;
readonly TEXTURE21 : GLenum ;
readonly TEXTURE22 : GLenum ;
readonly TEXTURE23 : GLenum ;
readonly TEXTURE24 : GLenum ;
readonly TEXTURE25 : GLenum ;
readonly TEXTURE26 : GLenum ;
readonly TEXTURE27 : GLenum ;
readonly TEXTURE28 : GLenum ;
readonly TEXTURE29 : GLenum ;
readonly TEXTURE3 : GLenum ;
readonly TEXTURE30 : GLenum ;
readonly TEXTURE31 : GLenum ;
readonly TEXTURE4 : GLenum ;
readonly TEXTURE5 : GLenum ;
readonly TEXTURE6 : GLenum ;
readonly TEXTURE7 : GLenum ;
readonly TEXTURE8 : GLenum ;
readonly TEXTURE9 : GLenum ;
readonly TEXTURE_2D : GLenum ;
readonly TEXTURE_BINDING_2D : GLenum ;
readonly TEXTURE_BINDING_CUBE_MAP : GLenum ;
readonly TEXTURE_CUBE_MAP : GLenum ;
readonly TEXTURE_CUBE_MAP_NEGATIVE_X : GLenum ;
readonly TEXTURE_CUBE_MAP_NEGATIVE_Y : GLenum ;
readonly TEXTURE_CUBE_MAP_NEGATIVE_Z : GLenum ;
readonly TEXTURE_CUBE_MAP_POSITIVE_X : GLenum ;
readonly TEXTURE_CUBE_MAP_POSITIVE_Y : GLenum ;
readonly TEXTURE_CUBE_MAP_POSITIVE_Z : GLenum ;
readonly TEXTURE_MAG_FILTER : GLenum ;
readonly TEXTURE_MIN_FILTER : GLenum ;
readonly TEXTURE_WRAP_S : GLenum ;
readonly TEXTURE_WRAP_T : GLenum ;
readonly TRIANGLES : GLenum ;
readonly TRIANGLE_FAN : GLenum ;
readonly TRIANGLE_STRIP : GLenum ;
readonly UNPACK_ALIGNMENT : GLenum ;
readonly UNPACK_COLORSPACE_CONVERSION_WEBGL : GLenum ;
readonly UNPACK_FLIP_Y_WEBGL : GLenum ;
readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL : GLenum ;
readonly UNSIGNED_BYTE : GLenum ;
readonly UNSIGNED_INT : GLenum ;
readonly UNSIGNED_SHORT : GLenum ;
readonly UNSIGNED_SHORT_4_4_4_4 : GLenum ;
readonly UNSIGNED_SHORT_5_5_5_1 : GLenum ;
readonly UNSIGNED_SHORT_5_6_5 : GLenum ;
readonly VALIDATE_STATUS : GLenum ;
readonly VENDOR : GLenum ;
readonly VERSION : GLenum ;
readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING : GLenum ;
readonly VERTEX_ATTRIB_ARRAY_ENABLED : GLenum ;
readonly VERTEX_ATTRIB_ARRAY_NORMALIZED : GLenum ;
readonly VERTEX_ATTRIB_ARRAY_POINTER : GLenum ;
readonly VERTEX_ATTRIB_ARRAY_SIZE : GLenum ;
readonly VERTEX_ATTRIB_ARRAY_STRIDE : GLenum ;
readonly VERTEX_ATTRIB_ARRAY_TYPE : GLenum ;
readonly VERTEX_SHADER : GLenum ;
readonly VIEWPORT : GLenum ;
readonly ZERO : GLenum ;
}
2019-07-29 19:33:43 +02:00
interface WebGLRenderingContextOverloads {
bufferData ( target : GLenum , size : GLsizeiptr , usage : GLenum ) : void ;
bufferData ( target : GLenum , data : BufferSource | null , usage : GLenum ) : void ;
bufferSubData ( target : GLenum , offset : GLintptr , data : BufferSource ) : void ;
compressedTexImage2D ( target : GLenum , level : GLint , internalformat : GLenum , width : GLsizei , height : GLsizei , border : GLint , data : ArrayBufferView ) : void ;
compressedTexSubImage2D ( target : GLenum , level : GLint , xoffset : GLint , yoffset : GLint , width : GLsizei , height : GLsizei , format : GLenum , data : ArrayBufferView ) : void ;
readPixels ( x : GLint , y : GLint , width : GLsizei , height : GLsizei , format : GLenum , type : GLenum , pixels : ArrayBufferView | null ) : void ;
texImage2D ( target : GLenum , level : GLint , internalformat : GLint , width : GLsizei , height : GLsizei , border : GLint , format : GLenum , type : GLenum , pixels : ArrayBufferView | null ) : void ;
texImage2D ( target : GLenum , level : GLint , internalformat : GLint , format : GLenum , type : GLenum , source : TexImageSource ) : void ;
texSubImage2D ( target : GLenum , level : GLint , xoffset : GLint , yoffset : GLint , width : GLsizei , height : GLsizei , format : GLenum , type : GLenum , pixels : ArrayBufferView | null ) : void ;
texSubImage2D ( target : GLenum , level : GLint , xoffset : GLint , yoffset : GLint , format : GLenum , type : GLenum , source : TexImageSource ) : void ;
uniform1fv ( location : WebGLUniformLocation | null , v : Float32List ) : void ;
uniform1iv ( location : WebGLUniformLocation | null , v : Int32List ) : void ;
uniform2fv ( location : WebGLUniformLocation | null , v : Float32List ) : void ;
uniform2iv ( location : WebGLUniformLocation | null , v : Int32List ) : void ;
uniform3fv ( location : WebGLUniformLocation | null , v : Float32List ) : void ;
uniform3iv ( location : WebGLUniformLocation | null , v : Int32List ) : void ;
uniform4fv ( location : WebGLUniformLocation | null , v : Float32List ) : void ;
uniform4iv ( location : WebGLUniformLocation | null , v : Int32List ) : void ;
uniformMatrix2fv ( location : WebGLUniformLocation | null , transpose : GLboolean , value : Float32List ) : void ;
uniformMatrix3fv ( location : WebGLUniformLocation | null , transpose : GLboolean , value : Float32List ) : void ;
uniformMatrix4fv ( location : WebGLUniformLocation | null , transpose : GLboolean , value : Float32List ) : void ;
}
interface WebGLSampler extends WebGLObject {
}
declare var WebGLSampler : {
prototype : WebGLSampler ;
new ( ) : WebGLSampler ;
} ;
2019-02-28 23:35:03 +01:00
/** The WebGLShader is part of the WebGL API and can either be a vertex or a fragment shader. A WebGLProgram requires both types of shaders. */
2018-11-13 01:27:38 +01:00
interface WebGLShader extends WebGLObject {
}
declare var WebGLShader : {
prototype : WebGLShader ;
new ( ) : WebGLShader ;
} ;
2019-07-29 19:33:43 +02:00
/** Part of the WebGL API and represents the information returned by calling the WebGLRenderingContext.getShaderPrecisionFormat() method. */
2018-11-13 01:27:38 +01:00
interface WebGLShaderPrecisionFormat {
readonly precision : GLint ;
readonly rangeMax : GLint ;
readonly rangeMin : GLint ;
}
declare var WebGLShaderPrecisionFormat : {
prototype : WebGLShaderPrecisionFormat ;
new ( ) : WebGLShaderPrecisionFormat ;
} ;
2019-07-29 19:33:43 +02:00
interface WebGLSync extends WebGLObject {
}
declare var WebGLSync : {
prototype : WebGLSync ;
new ( ) : WebGLSync ;
} ;
/** Part of the WebGL API and represents an opaque texture object providing storage and state for texturing operations. */
2018-11-13 01:27:38 +01:00
interface WebGLTexture extends WebGLObject {
}
declare var WebGLTexture : {
prototype : WebGLTexture ;
new ( ) : WebGLTexture ;
} ;
2019-07-29 19:33:43 +02:00
interface WebGLTransformFeedback extends WebGLObject {
}
declare var WebGLTransformFeedback : {
prototype : WebGLTransformFeedback ;
new ( ) : WebGLTransformFeedback ;
} ;
/** Part of the WebGL API and represents the location of a uniform variable in a shader program. */
2018-11-13 01:27:38 +01:00
interface WebGLUniformLocation {
}
declare var WebGLUniformLocation : {
prototype : WebGLUniformLocation ;
new ( ) : WebGLUniformLocation ;
} ;
2019-07-29 19:33:43 +02:00
interface WebGLVertexArrayObject extends WebGLObject {
}
declare var WebGLVertexArrayObject : {
prototype : WebGLVertexArrayObject ;
new ( ) : WebGLVertexArrayObject ;
} ;
2018-11-13 01:27:38 +01:00
interface WebGLVertexArrayObjectOES extends WebGLObject {
}
2016-12-15 22:46:39 +01:00
interface WebSocketEventMap {
"close" : CloseEvent ;
2017-02-15 23:44:31 +01:00
"error" : Event ;
2016-12-15 22:46:39 +01:00
"message" : MessageEvent ;
"open" : Event ;
}
2019-07-29 19:33:43 +02:00
/** Provides the API for creating and managing a WebSocket connection to a server, as well as for sending and receiving data on the connection. */
2016-12-15 07:03:00 +01:00
interface WebSocket extends EventTarget {
2018-03-29 02:46:57 +02:00
binaryType : BinaryType ;
2016-12-15 07:03:00 +01:00
readonly bufferedAmount : number ;
readonly extensions : string ;
2018-03-29 02:46:57 +02:00
onclose : ( ( this : WebSocket , ev : CloseEvent ) = > any ) | null ;
onerror : ( ( this : WebSocket , ev : Event ) = > any ) | null ;
onmessage : ( ( this : WebSocket , ev : MessageEvent ) = > any ) | null ;
onopen : ( ( this : WebSocket , ev : Event ) = > any ) | null ;
2016-12-15 07:03:00 +01:00
readonly protocol : string ;
readonly readyState : number ;
readonly url : string ;
close ( code? : number , reason? : string ) : void ;
2018-03-29 02:46:57 +02:00
send ( data : string | ArrayBufferLike | Blob | ArrayBufferView ) : void ;
2016-12-15 07:03:00 +01:00
readonly CLOSED : number ;
readonly CLOSING : number ;
readonly CONNECTING : number ;
readonly OPEN : number ;
2017-12-02 20:16:59 +01:00
addEventListener < K extends keyof WebSocketEventMap > ( type : K , listener : ( this : WebSocket , ev : WebSocketEventMap [ K ] ) = > any , options? : boolean | AddEventListenerOptions ) : void ;
addEventListener ( type : string , listener : EventListenerOrEventListenerObject , options? : boolean | AddEventListenerOptions ) : void ;
removeEventListener < K extends keyof WebSocketEventMap > ( type : K , listener : ( this : WebSocket , ev : WebSocketEventMap [ K ] ) = > any , options? : boolean | EventListenerOptions ) : void ;
removeEventListener ( type : string , listener : EventListenerOrEventListenerObject , options? : boolean | EventListenerOptions ) : void ;
2016-12-15 07:03:00 +01:00
}
declare var WebSocket : {
prototype : WebSocket ;
new ( url : string , protocols? : string | string [ ] ) : WebSocket ;
readonly CLOSED : number ;
readonly CLOSING : number ;
readonly CONNECTING : number ;
readonly OPEN : number ;
2017-08-01 00:54:41 +02:00
} ;
2016-12-15 07:03:00 +01:00
2018-03-29 02:46:57 +02:00
interface WindowBase64 {
atob ( encodedString : string ) : string ;
btoa ( rawString : string ) : string ;
}
2019-07-29 19:33:43 +02:00
/** This ServiceWorker API interface represents the scope of a service worker client that is a document in a browser context, controlled by an active worker. The service worker client independently selects and uses a service worker for its own loading and sub-resources. */
2018-03-29 02:46:57 +02:00
interface WindowClient extends Client {
readonly ancestorOrigins : ReadonlyArray < string > ;
readonly focused : boolean ;
readonly visibilityState : VisibilityState ;
focus ( ) : Promise < WindowClient > ;
2018-06-11 05:05:12 +02:00
navigate ( url : string ) : Promise < WindowClient | null > ;
2018-03-29 02:46:57 +02:00
}
declare var WindowClient : {
prototype : WindowClient ;
new ( ) : WindowClient ;
} ;
interface WindowConsole {
readonly console : Console ;
}
2018-08-17 18:13:43 +02:00
interface WindowOrWorkerGlobalScope {
readonly caches : CacheStorage ;
readonly crypto : Crypto ;
readonly indexedDB : IDBFactory ;
readonly origin : string ;
readonly performance : Performance ;
atob ( data : string ) : string ;
btoa ( data : string ) : string ;
clearInterval ( handle? : number ) : void ;
clearTimeout ( handle? : number ) : void ;
createImageBitmap ( image : ImageBitmapSource ) : Promise < ImageBitmap > ;
createImageBitmap ( image : ImageBitmapSource , sx : number , sy : number , sw : number , sh : number ) : Promise < ImageBitmap > ;
fetch ( input : RequestInfo , init? : RequestInit ) : Promise < Response > ;
queueMicrotask ( callback : Function ) : void ;
setInterval ( handler : TimerHandler , timeout? : number , . . . arguments : any [ ] ) : number ;
setTimeout ( handler : TimerHandler , timeout? : number , . . . arguments : any [ ] ) : number ;
}
2016-12-15 22:46:39 +01:00
interface WorkerEventMap extends AbstractWorkerEventMap {
"message" : MessageEvent ;
}
2019-07-29 19:33:43 +02:00
/** This Web Workers API interface represents a background task that can be easily created and can send messages back to its creator. Creating a worker is as simple as calling the Worker() constructor and specifying a script to be run in the worker thread. */
2016-12-15 07:03:00 +01:00
interface Worker extends EventTarget , AbstractWorker {
2018-03-29 02:46:57 +02:00
onmessage : ( ( this : Worker , ev : MessageEvent ) = > any ) | null ;
2019-07-29 19:33:43 +02:00
postMessage ( message : any , transfer : Transferable [ ] ) : void ;
postMessage ( message : any , options? : PostMessageOptions ) : void ;
2016-12-15 07:03:00 +01:00
terminate ( ) : void ;
2017-12-02 20:16:59 +01:00
addEventListener < K extends keyof WorkerEventMap > ( type : K , listener : ( this : Worker , ev : WorkerEventMap [ K ] ) = > any , options? : boolean | AddEventListenerOptions ) : void ;
addEventListener ( type : string , listener : EventListenerOrEventListenerObject , options? : boolean | AddEventListenerOptions ) : void ;
removeEventListener < K extends keyof WorkerEventMap > ( type : K , listener : ( this : Worker , ev : WorkerEventMap [ K ] ) = > any , options? : boolean | EventListenerOptions ) : void ;
removeEventListener ( type : string , listener : EventListenerOrEventListenerObject , options? : boolean | EventListenerOptions ) : void ;
2016-12-15 07:03:00 +01:00
}
declare var Worker : {
prototype : Worker ;
2019-02-28 23:35:03 +01:00
new ( stringUrl : string | URL , options? : WorkerOptions ) : Worker ;
2017-08-01 00:54:41 +02:00
} ;
2016-12-15 07:03:00 +01:00
2018-03-29 02:46:57 +02:00
interface WorkerGlobalScopeEventMap {
"error" : ErrorEvent ;
}
2019-07-29 19:33:43 +02:00
/** This Web Workers API interface is an interface representing the scope of any worker. Workers have no browsing context; this scope contains the information usually conveyed by Window objects — in this case event handlers, the console or the associated WorkerNavigator object. Each WorkerGlobalScope has its own event loop. */
interface WorkerGlobalScope extends EventTarget , WorkerUtils , WindowConsole , WindowOrWorkerGlobalScope {
2018-03-29 02:46:57 +02:00
readonly caches : CacheStorage ;
readonly isSecureContext : boolean ;
readonly location : WorkerLocation ;
onerror : ( ( this : WorkerGlobalScope , ev : ErrorEvent ) = > any ) | null ;
readonly performance : Performance ;
2019-07-29 19:33:43 +02:00
readonly self : WorkerGlobalScope & typeof globalThis ;
2018-03-29 02:46:57 +02:00
msWriteProfilerMark ( profilerMarkName : string ) : void ;
addEventListener < K extends keyof WorkerGlobalScopeEventMap > ( type : K , listener : ( this : WorkerGlobalScope , ev : WorkerGlobalScopeEventMap [ K ] ) = > any , options? : boolean | AddEventListenerOptions ) : void ;
addEventListener ( type : string , listener : EventListenerOrEventListenerObject , options? : boolean | AddEventListenerOptions ) : void ;
removeEventListener < K extends keyof WorkerGlobalScopeEventMap > ( type : K , listener : ( this : WorkerGlobalScope , ev : WorkerGlobalScopeEventMap [ K ] ) = > any , options? : boolean | EventListenerOptions ) : void ;
removeEventListener ( type : string , listener : EventListenerOrEventListenerObject , options? : boolean | EventListenerOptions ) : void ;
}
declare var WorkerGlobalScope : {
prototype : WorkerGlobalScope ;
new ( ) : WorkerGlobalScope ;
} ;
2019-07-29 19:33:43 +02:00
/** The absolute location of the script executed by the Worker. Such an object is initialized for each worker and is available via the WorkerGlobalScope.location property obtained by calling self.location. */
2018-03-29 02:46:57 +02:00
interface WorkerLocation {
readonly hash : string ;
readonly host : string ;
readonly hostname : string ;
readonly href : string ;
readonly origin : string ;
readonly pathname : string ;
readonly port : string ;
readonly protocol : string ;
readonly search : string ;
toString ( ) : string ;
}
declare var WorkerLocation : {
prototype : WorkerLocation ;
new ( ) : WorkerLocation ;
} ;
2019-07-29 19:33:43 +02:00
/** A subset of the Navigator interface allowed to be accessed from a Worker. Such an object is initialized for each worker and is available via the WorkerGlobalScope.navigator property obtained by calling window.self.navigator. */
2018-06-11 05:05:12 +02:00
interface WorkerNavigator extends NavigatorID , NavigatorOnLine , NavigatorBeacon , NavigatorConcurrentHardware , NavigatorStorage {
2019-07-29 19:33:43 +02:00
readonly permissions : Permissions ;
2018-06-11 05:05:12 +02:00
readonly serviceWorker : ServiceWorkerContainer ;
2018-03-29 02:46:57 +02:00
}
declare var WorkerNavigator : {
prototype : WorkerNavigator ;
new ( ) : WorkerNavigator ;
} ;
interface WorkerUtils extends WindowBase64 {
readonly indexedDB : IDBFactory ;
readonly msIndexedDB : IDBFactory ;
readonly navigator : WorkerNavigator ;
importScripts ( . . . urls : string [ ] ) : void ;
}
2019-07-29 19:33:43 +02:00
/** 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. */
2018-11-13 01:27:38 +01:00
interface WritableStream < W = any > {
readonly locked : boolean ;
abort ( reason? : any ) : Promise < void > ;
getWriter ( ) : WritableStreamDefaultWriter < W > ;
}
declare var WritableStream : {
prototype : WritableStream ;
new < W = any > ( underlyingSink? : UnderlyingSink < W > , strategy? : QueuingStrategy < W > ) : WritableStream < W > ;
} ;
2019-07-29 19:33:43 +02:00
/** This Streams API interface represents a controller allowing control of a WritableStream's state. When constructing a WritableStream, the underlying sink is given a corresponding WritableStreamDefaultController instance to manipulate. */
2018-11-13 01:27:38 +01:00
interface WritableStreamDefaultController {
error ( error? : any ) : void ;
}
2019-07-29 19:33:43 +02:00
/** This Streams API interface is the object returned by WritableStream.getWriter() and once created locks the < writer to the WritableStream ensuring that no other streams can write to the underlying sink. */
2018-11-13 01:27:38 +01:00
interface WritableStreamDefaultWriter < W = any > {
readonly closed : Promise < void > ;
readonly desiredSize : number | null ;
readonly ready : Promise < void > ;
abort ( reason? : any ) : Promise < void > ;
close ( ) : Promise < void > ;
releaseLock ( ) : void ;
write ( chunk : W ) : Promise < void > ;
}
2016-12-15 22:46:39 +01:00
interface XMLHttpRequestEventMap extends XMLHttpRequestEventTargetEventMap {
"readystatechange" : Event ;
}
2019-02-28 23:35:03 +01:00
/** Use XMLHttpRequest (XHR) objects to interact with servers. You can retrieve data from a URL without having to do a full page refresh. This enables a Web page to update just part of a page without disrupting what the user is doing. */
2018-06-11 05:05:12 +02:00
interface XMLHttpRequest extends XMLHttpRequestEventTarget {
2018-03-29 02:46:57 +02:00
onreadystatechange : ( ( this : XMLHttpRequest , ev : Event ) = > any ) | null ;
2018-06-11 05:05:12 +02:00
/ * *
* Returns client ' s state .
* /
2016-12-15 07:03:00 +01:00
readonly readyState : number ;
2018-06-11 05:05:12 +02:00
/ * *
* Returns the response ' s body .
* /
2016-12-15 07:03:00 +01:00
readonly response : any ;
2018-06-11 05:05:12 +02:00
/ * *
* Returns the text response .
2019-07-29 19:33:43 +02:00
*
2018-06-11 05:05:12 +02:00
* Throws an "InvalidStateError" DOMException if responseType is not the empty string or "text" .
* /
2016-12-15 07:03:00 +01:00
readonly responseText : string ;
2018-06-11 05:05:12 +02:00
/ * *
* Returns the response type .
2019-07-29 19:33:43 +02:00
*
* Can be set to change the response type . Values are : the empty string ( default ) , "arraybuffer" , "blob" , "document" , "json" , and "text" .
*
2018-06-11 05:05:12 +02:00
* When set : setting to "document" is ignored if current global object is not a Window object .
2019-07-29 19:33:43 +02:00
*
2018-06-11 05:05:12 +02:00
* When set : throws an "InvalidStateError" DOMException if state is loading or done .
2019-07-29 19:33:43 +02:00
*
2018-06-11 05:05:12 +02:00
* When set : throws an "InvalidAccessError" DOMException if the synchronous flag is set and current global object is a Window object .
* /
2017-04-26 23:38:47 +02:00
responseType : XMLHttpRequestResponseType ;
2017-02-15 23:44:31 +01:00
readonly responseURL : string ;
2016-12-15 07:03:00 +01:00
readonly status : number ;
readonly statusText : string ;
2018-06-11 05:05:12 +02:00
/ * *
2019-07-29 19:33:43 +02:00
* Can be set to a time in milliseconds . When set to a non - zero value will cause fetching to terminate after the given time has passed . When the time has passed , the request has not yet completed , and the synchronous flag is unset , a timeout event will then be dispatched , or a "TimeoutError" DOMException will be thrown otherwise ( for the send ( ) method ) .
*
2018-06-11 05:05:12 +02:00
* When set : throws an "InvalidAccessError" DOMException if the synchronous flag is set and current global object is a Window object .
* /
2016-12-15 07:03:00 +01:00
timeout : number ;
2018-06-11 05:05:12 +02:00
/ * *
2019-07-29 19:33:43 +02:00
* Returns the associated XMLHttpRequestUpload object . It can be used to gather transmission information when data is transferred to a server .
2018-06-11 05:05:12 +02:00
* /
2016-12-15 07:03:00 +01:00
readonly upload : XMLHttpRequestUpload ;
2018-06-11 05:05:12 +02:00
/ * *
2019-07-29 19:33:43 +02:00
* True when credentials are to be included in a cross - origin request . False when they are to be excluded in a cross - origin request and when cookies are to be ignored in its response . Initially false .
*
2018-06-11 05:05:12 +02:00
* When set : throws an "InvalidStateError" DOMException if state is not unsent or opened , or if the send ( ) flag is set .
* /
2016-12-15 07:03:00 +01:00
withCredentials : boolean ;
2018-06-11 05:05:12 +02:00
/ * *
* Cancels any network activity .
* /
2016-12-15 07:03:00 +01:00
abort ( ) : void ;
getAllResponseHeaders ( ) : string ;
2018-06-11 05:05:12 +02:00
getResponseHeader ( name : string ) : string | null ;
/ * *
* Sets the request method , request URL , and synchronous flag .
2019-07-29 19:33:43 +02:00
*
* Throws a "SyntaxError" DOMException if either method is not a valid HTTP method or url cannot be parsed .
*
* Throws a "SecurityError" DOMException if method is a case - insensitive match for ` CONNECT ` , ` TRACE ` , or ` TRACK ` .
*
2018-06-11 05:05:12 +02:00
* Throws an "InvalidAccessError" DOMException if async is false , current global object is a Window object , and the timeout attribute is not zero or the responseType attribute is not the empty string .
* /
open ( method : string , url : string ) : void ;
open ( method : string , url : string , async : boolean , username? : string | null , password? : string | null ) : void ;
/ * *
2019-07-29 19:33:43 +02:00
* Acts as if the ` Content-Type ` header value for response is mime . ( It does not actually change the header though . )
*
2018-06-11 05:05:12 +02:00
* Throws an "InvalidStateError" DOMException if state is loading or done .
* /
2016-12-15 07:03:00 +01:00
overrideMimeType ( mime : string ) : void ;
2018-06-11 05:05:12 +02:00
/ * *
2019-07-29 19:33:43 +02:00
* Initiates the request . The body argument provides the request body , if any , and is ignored if the request method is GET or HEAD .
*
2018-06-11 05:05:12 +02:00
* Throws an "InvalidStateError" DOMException if either state is not opened or the send ( ) flag is set .
* /
2018-08-17 18:13:43 +02:00
send ( body? : BodyInit | null ) : void ;
2018-06-11 05:05:12 +02:00
/ * *
* Combines a header in author request headers .
2019-07-29 19:33:43 +02:00
*
2018-06-11 05:05:12 +02:00
* Throws an "InvalidStateError" DOMException if either state is not opened or the send ( ) flag is set .
2019-07-29 19:33:43 +02:00
*
* Throws a "SyntaxError" DOMException if name is not a header name or if value is not a header value .
2018-06-11 05:05:12 +02:00
* /
setRequestHeader ( name : string , value : string ) : void ;
2016-12-15 07:03:00 +01:00
readonly DONE : number ;
readonly HEADERS_RECEIVED : number ;
readonly LOADING : number ;
readonly OPENED : number ;
readonly UNSENT : number ;
2017-12-02 20:16:59 +01:00
addEventListener < K extends keyof XMLHttpRequestEventMap > ( type : K , listener : ( this : XMLHttpRequest , ev : XMLHttpRequestEventMap [ K ] ) = > any , options? : boolean | AddEventListenerOptions ) : void ;
addEventListener ( type : string , listener : EventListenerOrEventListenerObject , options? : boolean | AddEventListenerOptions ) : void ;
removeEventListener < K extends keyof XMLHttpRequestEventMap > ( type : K , listener : ( this : XMLHttpRequest , ev : XMLHttpRequestEventMap [ K ] ) = > any , options? : boolean | EventListenerOptions ) : void ;
removeEventListener ( type : string , listener : EventListenerOrEventListenerObject , options? : boolean | EventListenerOptions ) : void ;
2016-12-15 07:03:00 +01:00
}
declare var XMLHttpRequest : {
prototype : XMLHttpRequest ;
new ( ) : XMLHttpRequest ;
readonly DONE : number ;
readonly HEADERS_RECEIVED : number ;
readonly LOADING : number ;
readonly OPENED : number ;
readonly UNSENT : number ;
2017-08-01 00:54:41 +02:00
} ;
2016-12-15 07:03:00 +01:00
2018-03-29 02:46:57 +02:00
interface XMLHttpRequestEventTargetEventMap {
2019-07-29 19:33:43 +02:00
"abort" : ProgressEvent < XMLHttpRequestEventTarget > ;
"error" : ProgressEvent < XMLHttpRequestEventTarget > ;
"load" : ProgressEvent < XMLHttpRequestEventTarget > ;
"loadend" : ProgressEvent < XMLHttpRequestEventTarget > ;
"loadstart" : ProgressEvent < XMLHttpRequestEventTarget > ;
"progress" : ProgressEvent < XMLHttpRequestEventTarget > ;
"timeout" : ProgressEvent < XMLHttpRequestEventTarget > ;
2016-12-15 22:46:39 +01:00
}
2018-06-11 05:05:12 +02:00
interface XMLHttpRequestEventTarget extends EventTarget {
onabort : ( ( this : XMLHttpRequest , ev : ProgressEvent ) = > any ) | null ;
onerror : ( ( this : XMLHttpRequest , ev : ProgressEvent ) = > any ) | null ;
onload : ( ( this : XMLHttpRequest , ev : ProgressEvent ) = > any ) | null ;
2018-03-29 02:46:57 +02:00
onloadend : ( ( this : XMLHttpRequest , ev : ProgressEvent ) = > any ) | null ;
2018-06-11 05:05:12 +02:00
onloadstart : ( ( this : XMLHttpRequest , ev : ProgressEvent ) = > any ) | null ;
2018-03-29 02:46:57 +02:00
onprogress : ( ( this : XMLHttpRequest , ev : ProgressEvent ) = > any ) | null ;
ontimeout : ( ( this : XMLHttpRequest , ev : ProgressEvent ) = > any ) | null ;
2017-12-02 20:16:59 +01:00
addEventListener < K extends keyof XMLHttpRequestEventTargetEventMap > ( type : K , listener : ( this : XMLHttpRequestEventTarget , ev : XMLHttpRequestEventTargetEventMap [ K ] ) = > any , options? : boolean | AddEventListenerOptions ) : void ;
addEventListener ( type : string , listener : EventListenerOrEventListenerObject , options? : boolean | AddEventListenerOptions ) : void ;
removeEventListener < K extends keyof XMLHttpRequestEventTargetEventMap > ( type : K , listener : ( this : XMLHttpRequestEventTarget , ev : XMLHttpRequestEventTargetEventMap [ K ] ) = > any , options? : boolean | EventListenerOptions ) : void ;
removeEventListener ( type : string , listener : EventListenerOrEventListenerObject , options? : boolean | EventListenerOptions ) : void ;
2016-12-15 07:03:00 +01:00
}
2018-06-11 05:05:12 +02:00
declare var XMLHttpRequestEventTarget : {
prototype : XMLHttpRequestEventTarget ;
new ( ) : XMLHttpRequestEventTarget ;
} ;
interface XMLHttpRequestUpload extends XMLHttpRequestEventTarget {
2018-03-29 02:46:57 +02:00
addEventListener < K extends keyof XMLHttpRequestEventTargetEventMap > ( type : K , listener : ( this : XMLHttpRequestUpload , ev : XMLHttpRequestEventTargetEventMap [ K ] ) = > any , options? : boolean | AddEventListenerOptions ) : void ;
2017-12-02 20:16:59 +01:00
addEventListener ( type : string , listener : EventListenerOrEventListenerObject , options? : boolean | AddEventListenerOptions ) : void ;
2018-03-29 02:46:57 +02:00
removeEventListener < K extends keyof XMLHttpRequestEventTargetEventMap > ( type : K , listener : ( this : XMLHttpRequestUpload , ev : XMLHttpRequestEventTargetEventMap [ K ] ) = > any , options? : boolean | EventListenerOptions ) : void ;
2017-12-02 20:16:59 +01:00
removeEventListener ( type : string , listener : EventListenerOrEventListenerObject , options? : boolean | EventListenerOptions ) : void ;
2017-09-26 22:51:27 +02:00
}
2018-03-29 02:46:57 +02:00
declare var XMLHttpRequestUpload : {
prototype : XMLHttpRequestUpload ;
new ( ) : XMLHttpRequestUpload ;
2018-02-21 18:12:48 +01:00
} ;
2016-12-15 07:03:00 +01:00
declare type EventListenerOrEventListenerObject = EventListener | EventListenerObject ;
2019-07-29 19:33:43 +02:00
declare namespace WebAssembly {
interface Global {
value : any ;
valueOf ( ) : any ;
}
var Global : {
prototype : Global ;
new ( descriptor : GlobalDescriptor , value? : any ) : Global ;
} ;
interface Instance {
readonly exports : any ;
}
var Instance : {
prototype : Instance ;
new ( module : Module , importObject? : any ) : Instance ;
} ;
interface Memory {
readonly buffer : ArrayBuffer ;
grow ( delta : number ) : number ;
}
var Memory : {
prototype : Memory ;
new ( descriptor : MemoryDescriptor ) : Memory ;
} ;
interface Module {
}
var Module : {
prototype : Module ;
new ( bytes : BufferSource ) : Module ;
customSections ( module : Module , sectionName : string ) : ArrayBuffer [ ] ;
exports ( module : Module ) : ModuleExportDescriptor [ ] ;
imports ( module : Module ) : ModuleImportDescriptor [ ] ;
} ;
interface Table {
readonly length : number ;
get ( index : number ) : Function | null ;
grow ( delta : number ) : number ;
set ( index : number , value : Function | null ) : void ;
}
var Table : {
prototype : Table ;
new ( descriptor : TableDescriptor ) : Table ;
} ;
interface GlobalDescriptor {
mutable? : boolean ;
value : string ;
}
interface MemoryDescriptor {
initial : number ;
maximum? : number ;
}
interface ModuleExportDescriptor {
kind : ImportExportKind ;
name : string ;
}
interface ModuleImportDescriptor {
kind : ImportExportKind ;
module : string ;
name : string ;
}
interface TableDescriptor {
element : TableKind ;
initial : number ;
maximum? : number ;
}
interface WebAssemblyInstantiatedSource {
instance : Instance ;
module : Module ;
}
type ImportExportKind = "function" | "table" | "memory" | "global" ;
type TableKind = "anyfunc" ;
function compile ( bytes : BufferSource ) : Promise < Module > ;
function instantiate ( bytes : BufferSource , importObject? : any ) : Promise < WebAssemblyInstantiatedSource > ;
function instantiate ( moduleObject : Module , importObject? : any ) : Promise < Instance > ;
function validate ( bytes : BufferSource ) : boolean ;
}
2018-06-11 05:05:12 +02:00
interface EventHandlerNonNull {
( event : Event ) : any ;
2016-12-15 07:03:00 +01:00
}
2018-03-29 02:46:57 +02:00
2019-07-29 19:33:43 +02:00
interface FrameRequestCallback {
( time : number ) : void ;
}
2018-06-11 05:05:12 +02:00
interface PerformanceObserverCallback {
( entries : PerformanceObserverEntryList , observer : PerformanceObserver ) : void ;
2017-08-01 00:54:41 +02:00
}
2018-03-29 02:46:57 +02:00
2018-11-13 01:27:38 +01:00
interface QueuingStrategySizeCallback < T = any > {
( chunk : T ) : number ;
}
interface ReadableByteStreamControllerCallback {
( controller : ReadableByteStreamController ) : void | PromiseLike < void > ;
}
interface ReadableStreamDefaultControllerCallback < R > {
( controller : ReadableStreamDefaultController < R > ) : void | PromiseLike < void > ;
}
interface ReadableStreamErrorCallback {
( reason : any ) : void | PromiseLike < void > ;
}
interface TransformStreamDefaultControllerCallback < O > {
( controller : TransformStreamDefaultController < O > ) : void | PromiseLike < void > ;
}
interface TransformStreamDefaultControllerTransformCallback < I , O > {
( chunk : I , controller : TransformStreamDefaultController < O > ) : void | PromiseLike < void > ;
}
interface WritableStreamDefaultControllerCloseCallback {
( ) : void | PromiseLike < void > ;
}
interface WritableStreamDefaultControllerStartCallback {
( controller : WritableStreamDefaultController ) : void | PromiseLike < void > ;
}
interface WritableStreamDefaultControllerWriteCallback < W > {
( chunk : W , controller : WritableStreamDefaultController ) : void | PromiseLike < void > ;
}
interface WritableStreamErrorCallback {
( reason : any ) : void | PromiseLike < void > ;
}
2018-03-29 02:46:57 +02:00
declare var onmessage : ( ( this : DedicatedWorkerGlobalScope , ev : MessageEvent ) = > any ) | null ;
2017-02-15 23:44:31 +01:00
declare function close ( ) : void ;
2019-07-29 19:33:43 +02:00
declare function postMessage ( message : any , transfer : Transferable [ ] ) : void ;
declare function postMessage ( message : any , options? : PostMessageOptions ) : void ;
2018-08-17 18:13:43 +02:00
/ * *
2019-07-29 19:33:43 +02:00
* Dispatches a synthetic event event to target and returns true if either event ' s cancelable attribute value is false or its preventDefault ( ) method was not invoked , and false otherwise .
2018-08-17 18:13:43 +02:00
* /
declare function dispatchEvent ( event : Event ) : boolean ;
2017-02-15 23:44:31 +01:00
declare var caches : CacheStorage ;
declare var isSecureContext : boolean ;
2016-12-15 07:03:00 +01:00
declare var location : WorkerLocation ;
2018-03-29 02:46:57 +02:00
declare var onerror : ( ( this : DedicatedWorkerGlobalScope , ev : ErrorEvent ) = > any ) | null ;
2017-02-15 23:44:31 +01:00
declare var performance : Performance ;
2019-07-29 19:33:43 +02:00
declare var self : WorkerGlobalScope & typeof globalThis ;
2018-03-29 02:46:57 +02:00
declare function msWriteProfilerMark ( profilerMarkName : string ) : void ;
2018-08-17 18:13:43 +02:00
/ * *
2019-07-29 19:33:43 +02:00
* Dispatches a synthetic event event to target and returns true if either event ' s cancelable attribute value is false or its preventDefault ( ) method was not invoked , and false otherwise .
2018-08-17 18:13:43 +02:00
* /
declare function dispatchEvent ( event : Event ) : boolean ;
2016-12-15 07:03:00 +01:00
declare var indexedDB : IDBFactory ;
declare var msIndexedDB : IDBFactory ;
declare var navigator : WorkerNavigator ;
2018-08-17 18:13:43 +02:00
declare function importScripts ( . . . urls : string [ ] ) : void ;
2016-12-15 07:03:00 +01:00
declare function atob ( encodedString : string ) : string ;
declare function btoa ( rawString : string ) : string ;
declare var console : Console ;
2018-08-17 18:13:43 +02:00
declare var caches : CacheStorage ;
declare var crypto : Crypto ;
declare var indexedDB : IDBFactory ;
declare var origin : string ;
declare var performance : Performance ;
declare function atob ( data : string ) : string ;
declare function btoa ( data : string ) : string ;
declare function clearInterval ( handle? : number ) : void ;
declare function clearTimeout ( handle? : number ) : void ;
declare function createImageBitmap ( image : ImageBitmapSource ) : Promise < ImageBitmap > ;
declare function createImageBitmap ( image : ImageBitmapSource , sx : number , sy : number , sw : number , sh : number ) : Promise < ImageBitmap > ;
declare function fetch ( input : RequestInfo , init? : RequestInit ) : Promise < Response > ;
declare function queueMicrotask ( callback : Function ) : void ;
declare function setInterval ( handler : TimerHandler , timeout? : number , . . . arguments : any [ ] ) : number ;
declare function setTimeout ( handler : TimerHandler , timeout? : number , . . . arguments : any [ ] ) : number ;
2019-07-29 19:33:43 +02:00
declare function cancelAnimationFrame ( handle : number ) : void ;
declare function requestAnimationFrame ( callback : FrameRequestCallback ) : number ;
2017-12-02 20:16:59 +01:00
declare function addEventListener < K extends keyof DedicatedWorkerGlobalScopeEventMap > ( type : K , listener : ( this : DedicatedWorkerGlobalScope , ev : DedicatedWorkerGlobalScopeEventMap [ K ] ) = > any , options? : boolean | AddEventListenerOptions ) : void ;
declare function addEventListener ( type : string , listener : EventListenerOrEventListenerObject , options? : boolean | AddEventListenerOptions ) : void ;
declare function removeEventListener < K extends keyof DedicatedWorkerGlobalScopeEventMap > ( type : K , listener : ( this : DedicatedWorkerGlobalScope , ev : DedicatedWorkerGlobalScopeEventMap [ K ] ) = > any , options? : boolean | EventListenerOptions ) : void ;
declare function removeEventListener ( type : string , listener : EventListenerOrEventListenerObject , options? : boolean | EventListenerOptions ) : void ;
2018-06-11 05:05:12 +02:00
type HeadersInit = Headers | string [ ] [ ] | Record < string , string > ;
2018-11-13 01:27:38 +01:00
type BodyInit = Blob | BufferSource | FormData | URLSearchParams | ReadableStream < Uint8Array > | string ;
2017-02-15 23:44:31 +01:00
type RequestInfo = Request | string ;
2019-07-29 19:33:43 +02:00
type BlobPart = BufferSource | Blob | string ;
2018-06-11 05:05:12 +02:00
type DOMHighResTimeStamp = number ;
2019-07-29 19:33:43 +02:00
type CanvasImageSource = ImageBitmap | OffscreenCanvas ;
type OffscreenRenderingContext = OffscreenCanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext ;
2018-08-17 18:13:43 +02:00
type MessageEventSource = MessagePort | ServiceWorker ;
type ImageBitmapSource = CanvasImageSource | Blob | ImageData ;
type TimerHandler = string | Function ;
2018-06-11 05:05:12 +02:00
type PerformanceEntryList = PerformanceEntry [ ] ;
type PushMessageDataInit = BufferSource | string ;
type VibratePattern = number | number [ ] ;
2018-08-17 18:13:43 +02:00
type AlgorithmIdentifier = string | Algorithm ;
type HashAlgorithmIdentifier = AlgorithmIdentifier ;
type BigInteger = Uint8Array ;
type NamedCurve = string ;
2018-11-13 01:27:38 +01:00
type GLenum = number ;
type GLboolean = boolean ;
type GLbitfield = number ;
type GLint = number ;
type GLsizei = number ;
type GLintptr = number ;
type GLsizeiptr = number ;
type GLuint = number ;
type GLfloat = number ;
type GLclampf = number ;
2019-07-29 19:33:43 +02:00
type TexImageSource = ImageBitmap | ImageData | OffscreenCanvas ;
2018-11-13 01:27:38 +01:00
type Float32List = Float32Array | GLfloat [ ] ;
type Int32List = Int32Array | GLint [ ] ;
2019-07-29 19:33:43 +02:00
type GLint64 = number ;
type GLuint64 = number ;
type Uint32List = Uint32Array | GLuint [ ] ;
2018-06-11 05:05:12 +02:00
type BufferSource = ArrayBufferView | ArrayBuffer ;
type DOMTimeStamp = number ;
type FormDataEntryValue = File | string ;
type IDBValidKey = number | string | Date | BufferSource | IDBArrayKey ;
2018-08-17 18:13:43 +02:00
type Transferable = ArrayBuffer | MessagePort | ImageBitmap ;
2018-03-29 02:46:57 +02:00
type BinaryType = "blob" | "arraybuffer" ;
2019-07-29 19:33:43 +02:00
type CanvasDirection = "ltr" | "rtl" | "inherit" ;
type CanvasFillRule = "nonzero" | "evenodd" ;
type CanvasLineCap = "butt" | "round" | "square" ;
type CanvasLineJoin = "round" | "bevel" | "miter" ;
type CanvasTextAlign = "start" | "end" | "left" | "right" | "center" ;
type CanvasTextBaseline = "top" | "hanging" | "middle" | "alphabetic" | "ideographic" | "bottom" ;
2018-06-11 05:05:12 +02:00
type ClientTypes = "window" | "worker" | "sharedworker" | "all" ;
2018-11-13 01:27:38 +01:00
type EndingType = "transparent" | "native" ;
2019-07-29 19:33:43 +02:00
type FrameType = "auxiliary" | "top-level" | "nested" | "none" ;
2017-04-26 23:38:47 +02:00
type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique" ;
type IDBRequestReadyState = "pending" | "done" ;
type IDBTransactionMode = "readonly" | "readwrite" | "versionchange" ;
2019-07-29 19:33:43 +02:00
type ImageSmoothingQuality = "low" | "medium" | "high" ;
2018-08-17 18:13:43 +02:00
type KeyFormat = "raw" | "spki" | "pkcs8" | "jwk" ;
type KeyType = "public" | "private" | "secret" ;
type KeyUsage = "encrypt" | "decrypt" | "sign" | "verify" | "deriveKey" | "deriveBits" | "wrapKey" | "unwrapKey" ;
2017-04-26 23:38:47 +02:00
type NotificationDirection = "auto" | "ltr" | "rtl" ;
type NotificationPermission = "default" | "denied" | "granted" ;
2019-07-29 19:33:43 +02:00
type OffscreenRenderingContextId = "2d" | "bitmaprenderer" | "webgl" | "webgl2" ;
type PermissionName = "geolocation" | "notifications" | "push" | "midi" | "camera" | "microphone" | "speaker" | "device-info" | "background-sync" | "bluetooth" | "persistent-storage" | "ambient-light-sensor" | "accelerometer" | "gyroscope" | "magnetometer" | "clipboard" ;
type PermissionState = "granted" | "denied" | "prompt" ;
2017-04-26 23:38:47 +02:00
type PushEncryptionKeyName = "p256dh" | "auth" ;
2018-06-11 05:05:12 +02:00
type PushPermissionState = "denied" | "granted" | "prompt" ;
2019-02-28 23:35:03 +01:00
type ReferrerPolicy = "" | "no-referrer" | "no-referrer-when-downgrade" | "same-origin" | "origin" | "strict-origin" | "origin-when-cross-origin" | "strict-origin-when-cross-origin" | "unsafe-url" ;
2018-06-11 05:05:12 +02:00
type RequestCache = "default" | "no-store" | "reload" | "no-cache" | "force-cache" | "only-if-cached" ;
2017-04-26 23:38:47 +02:00
type RequestCredentials = "omit" | "same-origin" | "include" ;
2018-06-11 05:05:12 +02:00
type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "image" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "track" | "video" | "worker" | "xslt" ;
2017-04-26 23:38:47 +02:00
type RequestMode = "navigate" | "same-origin" | "no-cors" | "cors" ;
type RequestRedirect = "follow" | "error" | "manual" ;
type ResponseType = "basic" | "cors" | "default" | "error" | "opaque" | "opaqueredirect" ;
type ServiceWorkerState = "installing" | "installed" | "activating" | "activated" | "redundant" ;
2018-06-11 05:05:12 +02:00
type ServiceWorkerUpdateViaCache = "imports" | "all" | "none" ;
2018-08-17 18:13:43 +02:00
type VisibilityState = "hidden" | "visible" | "prerender" ;
2018-11-13 01:27:38 +01:00
type WebGLPowerPreference = "default" | "low-power" | "high-performance" ;
2018-06-11 05:05:12 +02:00
type WorkerType = "classic" | "module" ;
2018-08-17 18:13:43 +02:00
type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text" ;