@better-typescript-lib/dom
Advanced tools
Comparing version 2.3.1 to 2.4.0
@@ -7,2 +7,3 @@ /// <reference no-default-lib="true"/> | ||
interface AudioParam { | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/setValueCurveAtTime) */ | ||
setValueCurveAtTime( | ||
@@ -18,2 +19,3 @@ values: Iterable<number>, | ||
interface BaseAudioContext { | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createIIRFilter) */ | ||
createIIRFilter( | ||
@@ -23,2 +25,3 @@ feedforward: Iterable<number>, | ||
): IIRFilterNode; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createPeriodicWave) */ | ||
createPeriodicWave( | ||
@@ -35,2 +38,9 @@ real: Iterable<number>, | ||
interface CSSNumericArray { | ||
[Symbol.iterator](): IterableIterator<CSSNumericValue>; | ||
entries(): IterableIterator<[number, CSSNumericValue]>; | ||
keys(): IterableIterator<number>; | ||
values(): IterableIterator<CSSNumericValue>; | ||
} | ||
interface CSSRuleList { | ||
@@ -44,3 +54,18 @@ [Symbol.iterator](): IterableIterator<CSSRule>; | ||
interface CSSTransformValue { | ||
[Symbol.iterator](): IterableIterator<CSSTransformComponent>; | ||
entries(): IterableIterator<[number, CSSTransformComponent]>; | ||
keys(): IterableIterator<number>; | ||
values(): IterableIterator<CSSTransformComponent>; | ||
} | ||
interface CSSUnparsedValue { | ||
[Symbol.iterator](): IterableIterator<CSSUnparsedSegment>; | ||
entries(): IterableIterator<[number, CSSUnparsedSegment]>; | ||
keys(): IterableIterator<number>; | ||
values(): IterableIterator<CSSUnparsedSegment>; | ||
} | ||
interface Cache { | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/addAll) */ | ||
addAll(requests: Iterable<RequestInfo>): Promise<void>; | ||
@@ -50,2 +75,3 @@ } | ||
interface CanvasPath { | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/roundRect) */ | ||
roundRect( | ||
@@ -61,2 +87,3 @@ x: number, | ||
interface CanvasPathDrawingStyles { | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/setLineDash) */ | ||
setLineDash(segments: Iterable<number>): void; | ||
@@ -133,3 +160,7 @@ } | ||
interface IDBDatabase { | ||
/** 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. */ | ||
/** | ||
* 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. | ||
* | ||
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/transaction) | ||
*/ | ||
transaction( | ||
@@ -147,2 +178,4 @@ storeNames: string | Iterable<string>, | ||
* Throws an "InvalidStateError" DOMException if not called within an upgrade transaction. | ||
* | ||
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/createIndex) | ||
*/ | ||
@@ -159,2 +192,3 @@ createIndex( | ||
interface MIDIOutput { | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIOutput/send) */ | ||
send(data: Iterable<number>, timestamp?: DOMHighResTimeStamp): void; | ||
@@ -177,3 +211,7 @@ } | ||
interface MessageEvent<T = any> { | ||
/** @deprecated */ | ||
/** | ||
* @deprecated | ||
* | ||
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/initMessageEvent) | ||
*/ | ||
initMessageEvent( | ||
@@ -200,3 +238,7 @@ type: string, | ||
interface Navigator { | ||
/** Available only in secure contexts. */ | ||
/** | ||
* Available only in secure contexts. | ||
* | ||
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/requestMediaKeySystemAccess) | ||
*/ | ||
requestMediaKeySystemAccess( | ||
@@ -206,2 +248,3 @@ keySystem: string, | ||
): Promise<MediaKeySystemAccess>; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/vibrate) */ | ||
vibrate(pattern: Iterable<number>): boolean; | ||
@@ -239,2 +282,3 @@ } | ||
interface RTCRtpTransceiver { | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/setCodecPreferences) */ | ||
setCodecPreferences(codecs: Iterable<RTCRtpCodecCapability>): void; | ||
@@ -277,2 +321,9 @@ } | ||
interface StylePropertyMapReadOnly { | ||
[Symbol.iterator](): IterableIterator<[string, Iterable<CSSStyleValue>]>; | ||
entries(): IterableIterator<[string, Iterable<CSSStyleValue>]>; | ||
keys(): IterableIterator<string>; | ||
values(): IterableIterator<Iterable<CSSStyleValue>>; | ||
} | ||
interface StyleSheetList { | ||
@@ -283,2 +334,3 @@ [Symbol.iterator](): IterableIterator<CSSStyleSheet>; | ||
interface SubtleCrypto { | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveKey) */ | ||
deriveKey( | ||
@@ -300,2 +352,3 @@ algorithm: | ||
): Promise<CryptoKey>; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/generateKey) */ | ||
generateKey( | ||
@@ -316,2 +369,3 @@ algorithm: RsaHashedKeyGenParams | EcKeyGenParams, | ||
): Promise<CryptoKeyPair | CryptoKey>; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/importKey) */ | ||
importKey( | ||
@@ -341,2 +395,3 @@ format: "jwk", | ||
): Promise<CryptoKey>; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/unwrapKey) */ | ||
unwrapKey( | ||
@@ -386,2 +441,3 @@ format: KeyFormat, | ||
interface WEBGL_draw_buffers { | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_draw_buffers/drawBuffersWEBGL) */ | ||
drawBuffersWEBGL(buffers: Iterable<GLenum>): void; | ||
@@ -391,2 +447,3 @@ } | ||
interface WEBGL_multi_draw { | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysInstancedWEBGL) */ | ||
multiDrawArraysInstancedWEBGL( | ||
@@ -402,2 +459,3 @@ mode: GLenum, | ||
): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysWEBGL) */ | ||
multiDrawArraysWEBGL( | ||
@@ -411,2 +469,3 @@ mode: GLenum, | ||
): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsInstancedWEBGL) */ | ||
multiDrawElementsInstancedWEBGL( | ||
@@ -423,2 +482,3 @@ mode: GLenum, | ||
): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsWEBGL) */ | ||
multiDrawElementsWEBGL( | ||
@@ -436,2 +496,3 @@ mode: GLenum, | ||
interface WebGL2RenderingContextBase { | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */ | ||
clearBufferfv( | ||
@@ -443,2 +504,3 @@ buffer: GLenum, | ||
): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */ | ||
clearBufferiv( | ||
@@ -450,2 +512,3 @@ buffer: GLenum, | ||
): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */ | ||
clearBufferuiv( | ||
@@ -457,3 +520,5 @@ buffer: GLenum, | ||
): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawBuffers) */ | ||
drawBuffers(buffers: Iterable<GLenum>): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getActiveUniforms) */ | ||
getActiveUniforms( | ||
@@ -464,2 +529,3 @@ program: WebGLProgram, | ||
): any; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getUniformIndices) */ | ||
getUniformIndices( | ||
@@ -469,3 +535,5 @@ program: WebGLProgram, | ||
): Iterable<GLuint> | null; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateFramebuffer) */ | ||
invalidateFramebuffer(target: GLenum, attachments: Iterable<GLenum>): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateSubFramebuffer) */ | ||
invalidateSubFramebuffer( | ||
@@ -479,2 +547,3 @@ target: GLenum, | ||
): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/transformFeedbackVaryings) */ | ||
transformFeedbackVaryings( | ||
@@ -485,2 +554,3 @@ program: WebGLProgram, | ||
): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */ | ||
uniform1uiv( | ||
@@ -492,2 +562,3 @@ location: WebGLUniformLocation | null, | ||
): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */ | ||
uniform2uiv( | ||
@@ -499,2 +570,3 @@ location: WebGLUniformLocation | null, | ||
): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */ | ||
uniform3uiv( | ||
@@ -506,2 +578,3 @@ location: WebGLUniformLocation | null, | ||
): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */ | ||
uniform4uiv( | ||
@@ -513,2 +586,3 @@ location: WebGLUniformLocation | null, | ||
): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ | ||
uniformMatrix2x3fv( | ||
@@ -521,2 +595,3 @@ location: WebGLUniformLocation | null, | ||
): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ | ||
uniformMatrix2x4fv( | ||
@@ -529,2 +604,3 @@ location: WebGLUniformLocation | null, | ||
): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ | ||
uniformMatrix3x2fv( | ||
@@ -537,2 +613,3 @@ location: WebGLUniformLocation | null, | ||
): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ | ||
uniformMatrix3x4fv( | ||
@@ -545,2 +622,3 @@ location: WebGLUniformLocation | null, | ||
): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ | ||
uniformMatrix4x2fv( | ||
@@ -553,2 +631,3 @@ location: WebGLUniformLocation | null, | ||
): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ | ||
uniformMatrix4x3fv( | ||
@@ -561,3 +640,5 @@ location: WebGLUniformLocation | null, | ||
): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */ | ||
vertexAttribI4iv(index: GLuint, values: Iterable<GLint>): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */ | ||
vertexAttribI4uiv(index: GLuint, values: Iterable<GLuint>): void; | ||
@@ -567,2 +648,3 @@ } | ||
interface WebGL2RenderingContextOverloads { | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ | ||
uniform1fv( | ||
@@ -574,2 +656,3 @@ location: WebGLUniformLocation | null, | ||
): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ | ||
uniform1iv( | ||
@@ -581,2 +664,3 @@ location: WebGLUniformLocation | null, | ||
): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ | ||
uniform2fv( | ||
@@ -588,2 +672,3 @@ location: WebGLUniformLocation | null, | ||
): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ | ||
uniform2iv( | ||
@@ -595,2 +680,3 @@ location: WebGLUniformLocation | null, | ||
): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ | ||
uniform3fv( | ||
@@ -602,2 +688,3 @@ location: WebGLUniformLocation | null, | ||
): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ | ||
uniform3iv( | ||
@@ -609,2 +696,3 @@ location: WebGLUniformLocation | null, | ||
): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ | ||
uniform4fv( | ||
@@ -616,2 +704,3 @@ location: WebGLUniformLocation | null, | ||
): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ | ||
uniform4iv( | ||
@@ -623,2 +712,3 @@ location: WebGLUniformLocation | null, | ||
): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */ | ||
uniformMatrix2fv( | ||
@@ -631,2 +721,3 @@ location: WebGLUniformLocation | null, | ||
): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */ | ||
uniformMatrix3fv( | ||
@@ -639,2 +730,3 @@ location: WebGLUniformLocation | null, | ||
): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */ | ||
uniformMatrix4fv( | ||
@@ -650,5 +742,9 @@ location: WebGLUniformLocation | null, | ||
interface WebGLRenderingContextBase { | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */ | ||
vertexAttrib1fv(index: GLuint, values: Iterable<GLfloat>): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */ | ||
vertexAttrib2fv(index: GLuint, values: Iterable<GLfloat>): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */ | ||
vertexAttrib3fv(index: GLuint, values: Iterable<GLfloat>): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */ | ||
vertexAttrib4fv(index: GLuint, values: Iterable<GLfloat>): void; | ||
@@ -658,10 +754,19 @@ } | ||
interface WebGLRenderingContextOverloads { | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ | ||
uniform1fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ | ||
uniform1iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ | ||
uniform2fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ | ||
uniform2iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ | ||
uniform3fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ | ||
uniform3iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ | ||
uniform4fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ | ||
uniform4iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */ | ||
uniformMatrix2fv( | ||
@@ -672,2 +777,3 @@ location: WebGLUniformLocation | null, | ||
): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */ | ||
uniformMatrix3fv( | ||
@@ -678,2 +784,3 @@ location: WebGLUniformLocation | null, | ||
): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */ | ||
uniformMatrix4fv( | ||
@@ -680,0 +787,0 @@ location: WebGLUniformLocation | null, |
{ | ||
"name": "@better-typescript-lib/dom", | ||
"version": "2.3.1", | ||
"version": "2.4.0", | ||
"description": "Better TypeScript standard library", | ||
@@ -5,0 +5,0 @@ "types": "./index.d.ts", |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1319388
33385