typeson-registry 13.2.1 → 14.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (97) hide show
  1. package/README.md +14 -2
  2. package/dist/index.d.cts +3 -0
  3. package/dist/index.d.cts.map +1 -0
  4. package/dist/index.d.ts +6 -1
  5. package/dist/index.d.ts.map +1 -1
  6. package/dist/index.js +165 -4
  7. package/dist/index.js.map +1 -1
  8. package/dist/index.min.js +2 -2
  9. package/dist/index.min.js.map +1 -1
  10. package/dist/index.umd.cjs +248 -3
  11. package/dist/index.umd.cjs.map +1 -1
  12. package/dist/index.umd.min.cjs +2 -2
  13. package/dist/index.umd.min.cjs.map +1 -1
  14. package/dist/polyfills/AudioData.d.ts +70 -0
  15. package/dist/polyfills/AudioData.d.ts.map +1 -0
  16. package/dist/polyfills/DOMMatrix.d.ts +43 -0
  17. package/dist/polyfills/DOMMatrix.d.ts.map +1 -0
  18. package/dist/polyfills/DOMMatrixReadOnly.d.ts +43 -0
  19. package/dist/polyfills/DOMMatrixReadOnly.d.ts.map +1 -0
  20. package/dist/polyfills/DOMPoint.d.ts +21 -0
  21. package/dist/polyfills/DOMPoint.d.ts.map +1 -0
  22. package/dist/polyfills/DOMPointReadOnly.d.ts +21 -0
  23. package/dist/polyfills/DOMPointReadOnly.d.ts.map +1 -0
  24. package/dist/polyfills/DOMQuad.d.ts +22 -0
  25. package/dist/polyfills/DOMQuad.d.ts.map +1 -0
  26. package/dist/polyfills/DOMRect.d.ts +25 -0
  27. package/dist/polyfills/DOMRect.d.ts.map +1 -0
  28. package/dist/polyfills/DOMRectReadOnly.d.ts +25 -0
  29. package/dist/polyfills/DOMRectReadOnly.d.ts.map +1 -0
  30. package/dist/polyfills/EncodedAudioChunk.d.ts +40 -0
  31. package/dist/polyfills/EncodedAudioChunk.d.ts.map +1 -0
  32. package/dist/polyfills/EncodedVideoChunk.d.ts +40 -0
  33. package/dist/polyfills/EncodedVideoChunk.d.ts.map +1 -0
  34. package/dist/polyfills/FileList.d.ts +21 -0
  35. package/dist/polyfills/FileList.d.ts.map +1 -0
  36. package/dist/polyfills/QuotaExceededError.d.ts +28 -0
  37. package/dist/polyfills/QuotaExceededError.d.ts.map +1 -0
  38. package/dist/polyfills/URL.d.ts +25 -0
  39. package/dist/polyfills/URL.d.ts.map +1 -0
  40. package/dist/polyfills/VideoFrame.d.ts +142 -0
  41. package/dist/polyfills/VideoFrame.d.ts.map +1 -0
  42. package/dist/polyfills/WebTransportError.d.ts +32 -0
  43. package/dist/polyfills/WebTransportError.d.ts.map +1 -0
  44. package/dist/polyfills/createImageBitmap.d.ts +14 -0
  45. package/dist/polyfills/createImageBitmap.d.ts.map +1 -0
  46. package/dist/polyfills/index.d.cts +3 -0
  47. package/dist/polyfills/index.d.cts.map +1 -0
  48. package/dist/polyfills/index.d.ts +16 -0
  49. package/dist/polyfills/index.d.ts.map +1 -0
  50. package/dist/presets/postmessage.d.ts.map +1 -1
  51. package/dist/presets/postmessage.umd.cjs.map +1 -1
  52. package/dist/presets/structured-cloning-throwing.umd.cjs +1 -1
  53. package/dist/presets/structured-cloning-throwing.umd.cjs.map +1 -1
  54. package/dist/presets/structured-cloning.d.ts.map +1 -1
  55. package/dist/presets/structured-cloning.umd.cjs +1 -1
  56. package/dist/presets/structured-cloning.umd.cjs.map +1 -1
  57. package/dist/types/encodedaudiochunk.d.ts +6 -0
  58. package/dist/types/encodedaudiochunk.d.ts.map +1 -0
  59. package/dist/types/encodedaudiochunk.umd.cjs +2 -0
  60. package/dist/types/encodedaudiochunk.umd.cjs.map +1 -0
  61. package/dist/types/encodedvideochunk.d.ts +6 -0
  62. package/dist/types/encodedvideochunk.d.ts.map +1 -0
  63. package/dist/types/encodedvideochunk.umd.cjs +2 -0
  64. package/dist/types/encodedvideochunk.umd.cjs.map +1 -0
  65. package/dist/types/quotaexceedederror.d.ts +6 -0
  66. package/dist/types/quotaexceedederror.d.ts.map +1 -0
  67. package/dist/types/quotaexceedederror.umd.cjs +2 -0
  68. package/dist/types/quotaexceedederror.umd.cjs.map +1 -0
  69. package/dist/types/videoframe.d.ts +6 -0
  70. package/dist/types/videoframe.d.ts.map +1 -0
  71. package/dist/types/videoframe.umd.cjs +4 -0
  72. package/dist/types/videoframe.umd.cjs.map +1 -0
  73. package/dist/types/webtransporterror.d.ts +6 -0
  74. package/dist/types/webtransporterror.d.ts.map +1 -0
  75. package/dist/types/webtransporterror.umd.cjs +2 -0
  76. package/dist/types/webtransporterror.umd.cjs.map +1 -0
  77. package/package.json +16 -8
  78. package/polyfills/AudioData.js +173 -0
  79. package/polyfills/DOMMatrix.js +55 -0
  80. package/polyfills/DOMMatrixReadOnly.js +55 -0
  81. package/polyfills/DOMPoint.js +29 -0
  82. package/polyfills/DOMPointReadOnly.js +30 -0
  83. package/polyfills/DOMQuad.js +31 -0
  84. package/polyfills/DOMRect.js +31 -0
  85. package/polyfills/DOMRectReadOnly.js +31 -0
  86. package/polyfills/EncodedAudioChunk.js +74 -0
  87. package/polyfills/EncodedVideoChunk.js +74 -0
  88. package/polyfills/FileList.js +51 -0
  89. package/polyfills/QuotaExceededError.js +53 -0
  90. package/polyfills/VideoFrame.js +350 -0
  91. package/polyfills/WebTransportError.js +44 -0
  92. package/polyfills/createImageBitmap.js +22 -0
  93. package/polyfills/{createObjectURL.cjs → index.cjs} +1474 -4
  94. package/polyfills/index.cjs.map +1 -0
  95. package/polyfills/index.js +15 -0
  96. package/polyfills/createObjectURL.cjs.map +0 -1
  97. /package/polyfills/{createObjectURL.js → URL.js} +0 -0
@@ -0,0 +1,70 @@
1
+ /**
2
+ * AudioData class.
3
+ */
4
+ export class AudioData {
5
+ /**
6
+ * @typedef {"u8"|"s16"|"s32"|"f32"|"u8-planar"|"s16-planar"
7
+ * |"s32-planar"|"f32-planar"} AudioDataFormat
8
+ */
9
+ /**
10
+ *
11
+ * @param {{
12
+ * format: AudioDataFormat,
13
+ * sampleRate: number,
14
+ * numberOfChannels: number,
15
+ * numberOfFrames: number,
16
+ * timestamp: number,
17
+ * data: ArrayBufferView|ArrayBuffer
18
+ * }} cfg
19
+ */
20
+ constructor({ format, sampleRate, numberOfChannels, numberOfFrames, timestamp, data }: {
21
+ format: "f32" | "f32-planar" | "s16" | "s16-planar" | "s32" | "s32-planar" | "u8" | "u8-planar";
22
+ sampleRate: number;
23
+ numberOfChannels: number;
24
+ numberOfFrames: number;
25
+ timestamp: number;
26
+ data: ArrayBufferView | ArrayBuffer;
27
+ });
28
+ format: "f32" | "f32-planar" | "s16" | "s16-planar" | "s32" | "s32-planar" | "u8" | "u8-planar";
29
+ sampleRate: number;
30
+ numberOfChannels: number;
31
+ numberOfFrames: number;
32
+ timestamp: number;
33
+ duration: number;
34
+ _bytesPerSample: number;
35
+ _TypedArray: Uint8ArrayConstructor | Int16ArrayConstructor | Int32ArrayConstructor | Float32ArrayConstructor;
36
+ _isPlanar: boolean;
37
+ _data: Uint8Array<ArrayBufferLike>;
38
+ /**
39
+ *
40
+ * @param {{
41
+ * planeIndex?: number,
42
+ * frameCount?: number
43
+ * }} [options]
44
+ * @returns {number}
45
+ */
46
+ allocationSize(options?: {
47
+ planeIndex?: number;
48
+ frameCount?: number;
49
+ }): number;
50
+ /**
51
+ *
52
+ * @param {ArrayBufferView|ArrayBuffer} destination
53
+ * @param {{
54
+ * planeIndex?: number,
55
+ * frameOffset?: number,
56
+ * frameCount?: number
57
+ * }} [options]
58
+ * @returns {void}
59
+ */
60
+ copyTo(destination: ArrayBufferView | ArrayBuffer, options?: {
61
+ planeIndex?: number;
62
+ frameOffset?: number;
63
+ frameCount?: number;
64
+ }): void;
65
+ /**
66
+ * @returns {string}
67
+ */
68
+ get [Symbol.toStringTag](): string;
69
+ }
70
+ //# sourceMappingURL=AudioData.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AudioData.d.ts","sourceRoot":"","sources":["../../polyfills/AudioData.js"],"names":[],"mappings":"AAYA;;GAEG;AACH;IACI;;;OAGG;IAEH;;;;;;;;;;OAUG;IACH,uFATW;QACN,MAAM,0FAAkB;QACxB,UAAU,EAAE,MAAM,CAAC;QACnB,gBAAgB,EAAE,MAAM,CAAC;QACzB,cAAc,EAAE,MAAM,CAAC;QACvB,SAAS,EAAE,MAAM,CAAC;QAClB,IAAI,EAAE,eAAe,GAAC,WAAW,CAAA;KAClC,EA2BH;IAjBG,gGAAoB;IACpB,mBAA4B;IAC5B,yBAAwC;IACxC,uBAAoC;IACpC,kBAA0B;IAC1B,iBAA2C;IAG3C,wBAA0C;IAC1C,6GAAkC;IAClC,mBAAuC;IAIvC,mCAE0B;IAY9B;;;;;;;OAOG;IACH,yBANW;QACN,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,UAAU,CAAC,EAAE,MAAM,CAAA;KACpB,GACS,MAAM,CA0BlB;IAED;;;;;;;;;OASG;IACH,oBARW,eAAe,GAAC,WAAW,YAC3B;QACN,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,UAAU,CAAC,EAAE,MAAM,CAAA;KACpB,GACS,IAAI,CA2DhB;IA7GD;;OAEG;IACH,4BAFa,MAAM,CAKlB;CAwGJ"}
@@ -0,0 +1,43 @@
1
+ /**
2
+ * DOMMatrix class.
3
+ */
4
+ export class DOMMatrix {
5
+ /**
6
+ * @param {[number, number, number, number, number, number]|
7
+ * [
8
+ * number, number, number, number,
9
+ * number, number, number, number,
10
+ * number, number, number, number,
11
+ * number, number, number, number
12
+ * ]} init
13
+ */
14
+ constructor(init: [number, number, number, number, number, number] | [number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number]);
15
+ is2D: boolean;
16
+ a: number | undefined;
17
+ b: number | undefined;
18
+ c: number | undefined;
19
+ d: number | undefined;
20
+ e: number | undefined;
21
+ f: number | undefined;
22
+ m11: number | undefined;
23
+ m12: number | undefined;
24
+ m13: number | undefined;
25
+ m14: number | undefined;
26
+ m21: number | undefined;
27
+ m22: number | undefined;
28
+ m23: number | undefined;
29
+ m24: number | undefined;
30
+ m31: number | undefined;
31
+ m32: number | undefined;
32
+ m33: number | undefined;
33
+ m34: number | undefined;
34
+ m41: number | undefined;
35
+ m42: number | undefined;
36
+ m43: number | undefined;
37
+ m44: number | undefined;
38
+ /**
39
+ * @returns {string}
40
+ */
41
+ get [Symbol.toStringTag](): string;
42
+ }
43
+ //# sourceMappingURL=DOMMatrix.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DOMMatrix.d.ts","sourceRoot":"","sources":["../../polyfills/DOMMatrix.js"],"names":[],"mappings":"AAEA;;GAEG;AACH;IACI;;;;;;;;OAQG;IACH,kBARW,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,GAC1D,CACA,MAAY,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EACpC,MAAY,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EACpC,MAAY,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EACpC,MAAY,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CACjC,EA8BH;IA1BO,cAAgB;IAChB,sBAAgB;IAChB,sBAAgB;IAChB,sBAAgB;IAChB,sBAAgB;IAChB,sBAAgB;IAChB,sBAAgB;IAIpB,wBAAkB;IAClB,wBAAkB;IAClB,wBAAkB;IAClB,wBAAkB;IAClB,wBAAkB;IAClB,wBAAkB;IAClB,wBAAkB;IAClB,wBAAkB;IAClB,wBAAkB;IAClB,wBAAkB;IAClB,wBAAmB;IACnB,wBAAmB;IACnB,wBAAmB;IACnB,wBAAmB;IACnB,wBAAmB;IACnB,wBAAmB;IAGvB;;OAEG;IACH,4BAFa,MAAM,CAKlB;CACJ"}
@@ -0,0 +1,43 @@
1
+ /**
2
+ * DOMMatrixReadOnly class.
3
+ */
4
+ export class DOMMatrixReadOnly {
5
+ /**
6
+ * @param {[number, number, number, number, number, number]|
7
+ * [
8
+ * number, number, number, number,
9
+ * number, number, number, number,
10
+ * number, number, number, number,
11
+ * number, number, number, number
12
+ * ]} init
13
+ */
14
+ constructor(init: [number, number, number, number, number, number] | [number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number]);
15
+ is2D: boolean;
16
+ a: number | undefined;
17
+ b: number | undefined;
18
+ c: number | undefined;
19
+ d: number | undefined;
20
+ e: number | undefined;
21
+ f: number | undefined;
22
+ m11: number | undefined;
23
+ m12: number | undefined;
24
+ m13: number | undefined;
25
+ m14: number | undefined;
26
+ m21: number | undefined;
27
+ m22: number | undefined;
28
+ m23: number | undefined;
29
+ m24: number | undefined;
30
+ m31: number | undefined;
31
+ m32: number | undefined;
32
+ m33: number | undefined;
33
+ m34: number | undefined;
34
+ m41: number | undefined;
35
+ m42: number | undefined;
36
+ m43: number | undefined;
37
+ m44: number | undefined;
38
+ /**
39
+ * @returns {string}
40
+ */
41
+ get [Symbol.toStringTag](): string;
42
+ }
43
+ //# sourceMappingURL=DOMMatrixReadOnly.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DOMMatrixReadOnly.d.ts","sourceRoot":"","sources":["../../polyfills/DOMMatrixReadOnly.js"],"names":[],"mappings":"AAEA;;GAEG;AACH;IACI;;;;;;;;OAQG;IACH,kBARW,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,GAC1D,CACA,MAAY,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EACpC,MAAY,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EACpC,MAAY,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EACpC,MAAY,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CACjC,EA8BH;IA1BO,cAAgB;IAChB,sBAAgB;IAChB,sBAAgB;IAChB,sBAAgB;IAChB,sBAAgB;IAChB,sBAAgB;IAChB,sBAAgB;IAIpB,wBAAkB;IAClB,wBAAkB;IAClB,wBAAkB;IAClB,wBAAkB;IAClB,wBAAkB;IAClB,wBAAkB;IAClB,wBAAkB;IAClB,wBAAkB;IAClB,wBAAkB;IAClB,wBAAkB;IAClB,wBAAmB;IACnB,wBAAmB;IACnB,wBAAmB;IACnB,wBAAmB;IACnB,wBAAmB;IACnB,wBAAmB;IAGvB;;OAEG;IACH,4BAFa,MAAM,CAKlB;CACJ"}
@@ -0,0 +1,21 @@
1
+ /**
2
+ * DOMPoint class.
3
+ */
4
+ export class DOMPoint {
5
+ /**
6
+ * @param {number} x
7
+ * @param {number} y
8
+ * @param {number} z
9
+ * @param {number} w
10
+ */
11
+ constructor(x: number, y: number, z: number, w: number);
12
+ x: number;
13
+ y: number;
14
+ z: number;
15
+ w: number;
16
+ /**
17
+ * @returns {string}
18
+ */
19
+ get [Symbol.toStringTag](): string;
20
+ }
21
+ //# sourceMappingURL=DOMPoint.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DOMPoint.d.ts","sourceRoot":"","sources":["../../polyfills/DOMPoint.js"],"names":[],"mappings":"AAEA;;GAEG;AACH;IACI;;;;;OAKG;IACH,eALW,MAAM,KACN,MAAM,KACN,MAAM,KACN,MAAM,EAOhB;IAJG,UAAe;IACf,UAAe;IACf,UAAe;IACf,UAAe;IAGnB;;OAEG;IACH,4BAFa,MAAM,CAKlB;CACJ"}
@@ -0,0 +1,21 @@
1
+ /**
2
+ * DOMPointReadOnly class.
3
+ */
4
+ export class DOMPointReadOnly {
5
+ /**
6
+ * @param {number} x
7
+ * @param {number} y
8
+ * @param {number} z
9
+ * @param {number} w
10
+ */
11
+ constructor(x: number, y: number, z: number, w: number);
12
+ x: number;
13
+ y: number;
14
+ z: number;
15
+ w: number;
16
+ /**
17
+ * @returns {string}
18
+ */
19
+ get [Symbol.toStringTag](): string;
20
+ }
21
+ //# sourceMappingURL=DOMPointReadOnly.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DOMPointReadOnly.d.ts","sourceRoot":"","sources":["../../polyfills/DOMPointReadOnly.js"],"names":[],"mappings":"AAEA;;GAEG;AACH;IACI;;;;;OAKG;IACH,eALW,MAAM,KACN,MAAM,KACN,MAAM,KACN,MAAM,EAOhB;IAJG,UAAe;IACf,UAAe;IACf,UAAe;IACf,UAAe;IAInB;;OAEG;IACH,4BAFa,MAAM,CAKlB;CACJ"}
@@ -0,0 +1,22 @@
1
+ /**
2
+ * DOMQuad class.
3
+ */
4
+ export class DOMQuad {
5
+ /**
6
+ * @param {DOMPoint} p1
7
+ * @param {DOMPoint} p2
8
+ * @param {DOMPoint} p3
9
+ * @param {DOMPoint} p4
10
+ */
11
+ constructor(p1: DOMPoint, p2: DOMPoint, p3: DOMPoint, p4: DOMPoint);
12
+ p1: DOMPoint;
13
+ p2: DOMPoint;
14
+ p3: DOMPoint;
15
+ p4: DOMPoint;
16
+ /**
17
+ * @returns {string}
18
+ */
19
+ get [Symbol.toStringTag](): string;
20
+ }
21
+ import { DOMPoint } from './DOMPoint.js';
22
+ //# sourceMappingURL=DOMQuad.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DOMQuad.d.ts","sourceRoot":"","sources":["../../polyfills/DOMQuad.js"],"names":[],"mappings":"AAIA;;GAEG;AACH;IACI;;;;;OAKG;IACH,gBALW,QAAQ,MACR,QAAQ,MACR,QAAQ,MACR,QAAQ,EAOlB;IAJG,aAAwC;IACxC,aAAwC;IACxC,aAAwC;IACxC,aAAwC;IAG5C;;OAEG;IACH,4BAFa,MAAM,CAKlB;CACJ;yBA5BsB,eAAe"}
@@ -0,0 +1,25 @@
1
+ /**
2
+ * DOMRect class.
3
+ */
4
+ export class DOMRect {
5
+ /**
6
+ * @param {number} x
7
+ * @param {number} y
8
+ * @param {number} width
9
+ * @param {number} height
10
+ */
11
+ constructor(x: number, y: number, width: number, height: number);
12
+ x: number;
13
+ left: number;
14
+ y: number;
15
+ top: number;
16
+ width: number;
17
+ height: number;
18
+ bottom: number;
19
+ right: number;
20
+ /**
21
+ * @returns {string}
22
+ */
23
+ get [Symbol.toStringTag](): string;
24
+ }
25
+ //# sourceMappingURL=DOMRect.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DOMRect.d.ts","sourceRoot":"","sources":["../../polyfills/DOMRect.js"],"names":[],"mappings":"AAEA;;GAEG;AACH;IACI;;;;;OAKG;IACH,eALW,MAAM,KACN,MAAM,SACN,MAAM,UACN,MAAM,EAShB;IANG,UAAsB;IAAb,aAAa;IACtB,UAAqB;IAAZ,YAAY;IACrB,cAAkB;IAClB,eAAoB;IACpB,eAAwB;IACxB,cAAsB;IAG1B;;OAEG;IACH,4BAFa,MAAM,CAKlB;CACJ"}
@@ -0,0 +1,25 @@
1
+ /**
2
+ * DOMRectReadOnly class.
3
+ */
4
+ export class DOMRectReadOnly {
5
+ /**
6
+ * @param {number} x
7
+ * @param {number} y
8
+ * @param {number} width
9
+ * @param {number} height
10
+ */
11
+ constructor(x: number, y: number, width: number, height: number);
12
+ x: number;
13
+ left: number;
14
+ y: number;
15
+ top: number;
16
+ width: number;
17
+ height: number;
18
+ bottom: number;
19
+ right: number;
20
+ /**
21
+ * @returns {string}
22
+ */
23
+ get [Symbol.toStringTag](): string;
24
+ }
25
+ //# sourceMappingURL=DOMRectReadOnly.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DOMRectReadOnly.d.ts","sourceRoot":"","sources":["../../polyfills/DOMRectReadOnly.js"],"names":[],"mappings":"AAEA;;GAEG;AACH;IACI;;;;;OAKG;IACH,eALW,MAAM,KACN,MAAM,SACN,MAAM,UACN,MAAM,EAShB;IANG,UAAsB;IAAb,aAAa;IACtB,UAAqB;IAAZ,YAAY;IACrB,cAAkB;IAClB,eAAoB;IACpB,eAAwB;IACxB,cAAsB;IAG1B;;OAEG;IACH,4BAFa,MAAM,CAKlB;CACJ"}
@@ -0,0 +1,40 @@
1
+ /**
2
+ * EncodedAudioChunk class.
3
+ */
4
+ export class EncodedAudioChunk {
5
+ /**
6
+ * @typedef {"key"|"delta"} EncodedAudioChunkType
7
+ */
8
+ /**
9
+ * @param {{
10
+ * type: EncodedAudioChunkType,
11
+ * timestamp: number,
12
+ * duration?: number,
13
+ * data: ArrayBufferView|ArrayBuffer
14
+ * }} init
15
+ */
16
+ constructor({ type, timestamp, duration, data }: {
17
+ type: "delta" | "key";
18
+ timestamp: number;
19
+ duration?: number;
20
+ data: ArrayBufferView | ArrayBuffer;
21
+ });
22
+ type: "delta" | "key";
23
+ timestamp: number;
24
+ duration: number | null;
25
+ _data: Uint8Array<ArrayBufferLike>;
26
+ /**
27
+ * @returns {number}
28
+ */
29
+ get byteLength(): number;
30
+ /**
31
+ * @param {ArrayBufferView|ArrayBuffer} destination
32
+ * @returns {void}
33
+ */
34
+ copyTo(destination: ArrayBufferView | ArrayBuffer): void;
35
+ /**
36
+ * @returns {string}
37
+ */
38
+ get [Symbol.toStringTag](): string;
39
+ }
40
+ //# sourceMappingURL=EncodedAudioChunk.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EncodedAudioChunk.d.ts","sourceRoot":"","sources":["../../polyfills/EncodedAudioChunk.js"],"names":[],"mappings":"AAAA;;GAEG;AACH;IACI;;OAEG;IAEH;;;;;;;OAOG;IACH,iDAPW;QACN,IAAI,kBAAwB;QAC5B,SAAS,EAAE,MAAM,CAAC;QAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,IAAI,EAAE,eAAe,GAAC,WAAW,CAAA;KAClC,EAcH;IAPG,sBAAgB;IAChB,kBAA0B;IAC1B,wBAAgC;IAEhC,mCAE0B;IAG9B;;OAEG;IACH,kBAFa,MAAM,CAIlB;IAED;;;OAGG;IACH,oBAHW,eAAe,GAAC,WAAW,GACzB,IAAI,CAsBhB;IAGD;;OAEG;IACH,4BAFa,MAAM,CAKlB;CACJ"}
@@ -0,0 +1,40 @@
1
+ /**
2
+ * EncodedVideoChunk class.
3
+ */
4
+ export class EncodedVideoChunk {
5
+ /**
6
+ * @typedef {"key"|"delta"} EncodedVideoChunkType
7
+ */
8
+ /**
9
+ * @param {{
10
+ * type: EncodedVideoChunkType,
11
+ * timestamp: number,
12
+ * duration?: number,
13
+ * data: ArrayBufferView|ArrayBuffer
14
+ * }} init
15
+ */
16
+ constructor({ type, timestamp, duration, data }: {
17
+ type: "delta" | "key";
18
+ timestamp: number;
19
+ duration?: number;
20
+ data: ArrayBufferView | ArrayBuffer;
21
+ });
22
+ type: "delta" | "key";
23
+ timestamp: number;
24
+ duration: number | null;
25
+ _data: Uint8Array<ArrayBufferLike>;
26
+ /**
27
+ * @returns {number}
28
+ */
29
+ get byteLength(): number;
30
+ /**
31
+ * @param {ArrayBufferView|ArrayBuffer} destination
32
+ * @returns {void}
33
+ */
34
+ copyTo(destination: ArrayBufferView | ArrayBuffer): void;
35
+ /**
36
+ * @returns {string}
37
+ */
38
+ get [Symbol.toStringTag](): string;
39
+ }
40
+ //# sourceMappingURL=EncodedVideoChunk.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EncodedVideoChunk.d.ts","sourceRoot":"","sources":["../../polyfills/EncodedVideoChunk.js"],"names":[],"mappings":"AAAA;;GAEG;AACH;IACI;;OAEG;IAEH;;;;;;;OAOG;IACH,iDAPW;QACN,IAAI,kBAAwB;QAC5B,SAAS,EAAE,MAAM,CAAC;QAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,IAAI,EAAE,eAAe,GAAC,WAAW,CAAA;KAClC,EAcH;IAPG,sBAAgB;IAChB,kBAA0B;IAC1B,wBAAgC;IAEhC,mCAE0B;IAG9B;;OAEG;IACH,kBAFa,MAAM,CAIlB;IAED;;;OAGG;IACH,oBAHW,eAAe,GAAC,WAAW,GACzB,IAAI,CAsBhB;IAGD;;OAEG;IACH,4BAFa,MAAM,CAKlB;CACJ"}
@@ -0,0 +1,21 @@
1
+ /**
2
+ * `FileList` polyfill.
3
+ */
4
+ export class FileList {
5
+ /**
6
+ *
7
+ */
8
+ constructor(...args: any[]);
9
+ _files: any;
10
+ length: any;
11
+ /**
12
+ * @param {import('typeson').Integer} index
13
+ * @returns {File}
14
+ */
15
+ item(index: import("typeson").Integer): File;
16
+ /**
17
+ * @returns {"FileList"}
18
+ */
19
+ get [Symbol.toStringTag](): "FileList";
20
+ }
21
+ //# sourceMappingURL=FileList.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FileList.d.ts","sourceRoot":"","sources":["../../polyfills/FileList.js"],"names":[],"mappings":"AAIA;;GAEG;AACH;IACI;;OAEG;IACH,4BAIC;IAFG,YAA0B;IAC1B,YAAgC;IAGpC;;;OAGG;IACH,YAHW,OAAO,SAAS,EAAE,OAAO,GACvB,IAAI,CAIhB;IAGD;;OAEG;IACH,4BAFa,UAAU,CAKtB;CACJ"}
@@ -0,0 +1,28 @@
1
+ /**
2
+ * QuotaExceededError polyfill (not yet available in Node/jsdom).
3
+ */
4
+ export class QuotaExceededError extends DOMException {
5
+ /**
6
+ * @param {string} [message]
7
+ * @param {{quota?: number, requested?: number}} [options]
8
+ */
9
+ constructor(message?: string, { quota, requested }?: {
10
+ quota?: number;
11
+ requested?: number;
12
+ });
13
+ _quota: number | null;
14
+ _requested: number | null;
15
+ /**
16
+ * @returns {number|null}
17
+ */
18
+ get quota(): number | null;
19
+ /**
20
+ * @returns {number|null}
21
+ */
22
+ get requested(): number | null;
23
+ /**
24
+ * @returns {string}
25
+ */
26
+ get [Symbol.toStringTag](): string;
27
+ }
28
+ //# sourceMappingURL=QuotaExceededError.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QuotaExceededError.d.ts","sourceRoot":"","sources":["../../polyfills/QuotaExceededError.js"],"names":[],"mappings":"AACA;;GAEG;AACH;IAEI;;;OAGG;IACH,sBAHW,MAAM,yBACN;QAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,CAAA;KAAC,EAkB9C;IAdG,sBAAgD;IAChD,0BAA4D;IAehE;;OAEG;IACH,aAFa,MAAM,GAAC,IAAI,CAIvB;IAED;;OAEG;IACH,iBAFa,MAAM,GAAC,IAAI,CAIvB;IAGD;;OAEG;IACH,4BAFa,MAAM,CAKlB;CACJ"}
@@ -0,0 +1,25 @@
1
+ export type XMLHttpRequestMimeOverrider = (mimeType: string) => void;
2
+ /**
3
+ * @param {Blob} blob
4
+ * @returns {string}
5
+ */
6
+ export function createObjectURL(blob: Blob): string;
7
+ /**
8
+ * @callback XMLHttpRequestMimeOverrider
9
+ * @param {string} mimeType
10
+ * @returns {void}
11
+ */
12
+ /**
13
+ * @param {object} [cfg]
14
+ * @param {boolean} [cfg.polyfillDataURLs]
15
+ * @returns {XMLHttpRequestMimeOverrider}
16
+ */
17
+ export function xmlHttpRequestOverrideMimeType({ polyfillDataURLs }?: {
18
+ polyfillDataURLs?: boolean | undefined;
19
+ }): XMLHttpRequestMimeOverrider;
20
+ /**
21
+ * @param {string} blobURL
22
+ * @returns {void}
23
+ */
24
+ export function revokeObjectURL(blobURL: string): void;
25
+ //# sourceMappingURL=URL.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"URL.d.ts","sourceRoot":"","sources":["../../polyfills/URL.js"],"names":[],"mappings":"qDA4DW,MAAM,KACJ,IAAI;AAlCjB;;;GAGG;AACH,sCAHW,IAAI,GACF,MAAM,CAgBlB;AAaD;;;;GAIG;AAEH;;;;GAIG;AACH,sEAHG;IAAsB,gBAAgB;CACtC,GAAU,2BAA2B,CAkEvC;AAtFD;;;GAGG;AACH,yCAHW,MAAM,GACJ,IAAI,CAIhB"}
@@ -0,0 +1,142 @@
1
+ /**
2
+ * VideoFrame class.
3
+ *
4
+ * Note: Unlike the spec, this polyfill only supports construction from
5
+ * a raw pixel buffer (`VideoFrameBufferInit`); constructing from a
6
+ * `CanvasImageSource` is not supported as there is no such source of
7
+ * pixels available by default in Node. `copyTo`/`allocationSize` also
8
+ * always treat the source data as tightly packed at `codedWidth` x
9
+ * `codedHeight` (i.e. a custom `layout` is not supported).
10
+ */
11
+ export class VideoFrame {
12
+ /**
13
+ * @param {ArrayBufferView|ArrayBuffer} data
14
+ * @param {{
15
+ * format: VideoPixelFormat,
16
+ * codedWidth: number,
17
+ * codedHeight: number,
18
+ * timestamp: number,
19
+ * duration?: number|null,
20
+ * visibleRect?: VideoFrameRect,
21
+ * displayWidth?: number,
22
+ * displayHeight?: number,
23
+ * colorSpace?: {
24
+ * primaries: string|null,
25
+ * transfer: string|null,
26
+ * matrix: string|null,
27
+ * fullRange: boolean|null
28
+ * }
29
+ * }} init
30
+ */
31
+ constructor(data: ArrayBufferView | ArrayBuffer, { format, codedWidth, codedHeight, timestamp, duration, visibleRect, displayWidth, displayHeight, colorSpace }: {
32
+ format: "BGRA" | "BGRX" | "I420" | "I420A" | "I422" | "I444" | "NV12" | "RGBA" | "RGBX";
33
+ codedWidth: number;
34
+ codedHeight: number;
35
+ timestamp: number;
36
+ duration?: number | null;
37
+ visibleRect?: {
38
+ x: number;
39
+ y: number;
40
+ width: number;
41
+ height: number;
42
+ };
43
+ displayWidth?: number;
44
+ displayHeight?: number;
45
+ colorSpace?: {
46
+ primaries: string | null;
47
+ transfer: string | null;
48
+ matrix: string | null;
49
+ fullRange: boolean | null;
50
+ };
51
+ });
52
+ /** @type {VideoPixelFormat|null} */
53
+ format: ("BGRA" | "BGRX" | "I420" | "I420A" | "I422" | "I444" | "NV12" | "RGBA" | "RGBX") | null;
54
+ /** @type {number} */
55
+ codedWidth: number;
56
+ /** @type {number} */
57
+ codedHeight: number;
58
+ /** @type {VideoFrameRect|null} */
59
+ codedRect: {
60
+ x: number;
61
+ y: number;
62
+ width: number;
63
+ height: number;
64
+ } | null;
65
+ /** @type {number} */
66
+ timestamp: number;
67
+ /** @type {number|null} */
68
+ duration: number | null;
69
+ /** @type {VideoFrameRect|null} */
70
+ visibleRect: {
71
+ x: number;
72
+ y: number;
73
+ width: number;
74
+ height: number;
75
+ } | null;
76
+ /** @type {number} */
77
+ displayWidth: number;
78
+ /** @type {number} */
79
+ displayHeight: number;
80
+ /**
81
+ * @type {{
82
+ * primaries: string|null, transfer: string|null,
83
+ * matrix: string|null, fullRange: boolean|null
84
+ * }}
85
+ */
86
+ colorSpace: {
87
+ primaries: string | null;
88
+ transfer: string | null;
89
+ matrix: string | null;
90
+ fullRange: boolean | null;
91
+ };
92
+ /**
93
+ * @param {{
94
+ * rect?: {x: number, y: number, width: number, height: number},
95
+ * format?: VideoPixelFormat
96
+ * }} [options]
97
+ * @returns {number}
98
+ */
99
+ allocationSize(options?: {
100
+ rect?: {
101
+ x: number;
102
+ y: number;
103
+ width: number;
104
+ height: number;
105
+ };
106
+ format?: "BGRA" | "BGRX" | "I420" | "I420A" | "I422" | "I444" | "NV12" | "RGBA" | "RGBX";
107
+ }): number;
108
+ /**
109
+ * @param {ArrayBufferView|ArrayBuffer} destination
110
+ * @param {{
111
+ * rect?: {x: number, y: number, width: number, height: number},
112
+ * format?: VideoPixelFormat
113
+ * }} [options]
114
+ * @returns {Promise<{offset: number, stride: number}[]>}
115
+ */
116
+ copyTo(destination: ArrayBufferView | ArrayBuffer, options?: {
117
+ rect?: {
118
+ x: number;
119
+ y: number;
120
+ width: number;
121
+ height: number;
122
+ };
123
+ format?: "BGRA" | "BGRX" | "I420" | "I420A" | "I422" | "I444" | "NV12" | "RGBA" | "RGBX";
124
+ }): Promise<{
125
+ offset: number;
126
+ stride: number;
127
+ }[]>;
128
+ /**
129
+ * @returns {VideoFrame}
130
+ */
131
+ clone(): VideoFrame;
132
+ /**
133
+ * @returns {void}
134
+ */
135
+ close(): void;
136
+ /**
137
+ * @returns {string}
138
+ */
139
+ get [Symbol.toStringTag](): string;
140
+ #private;
141
+ }
142
+ //# sourceMappingURL=VideoFrame.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VideoFrame.d.ts","sourceRoot":"","sources":["../../polyfills/VideoFrame.js"],"names":[],"mappings":"AAoCA;;;;;;;;;GASG;AACH;IAqDI;;;;;;;;;;;;;;;;;;OAkBG;IACH,kBAlBW,eAAe,GAAC,WAAW,kHAC3B;QACN,MAAM,kFAAmB;QACzB,UAAU,EAAE,MAAM,CAAC;QACnB,WAAW,EAAE,MAAM,CAAC;QACpB,SAAS,EAAE,MAAM,CAAC;QAClB,QAAQ,CAAC,EAAE,MAAM,GAAC,IAAI,CAAC;QACvB,WAAW,CAAC;eArDT,MAAM;eAAK,MAAM;mBAAS,MAAM;oBAAU,MAAM;UAqDtB;QAC7B,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB,UAAU,CAAC,EAAE;YACX,SAAS,EAAE,MAAM,GAAC,IAAI,CAAC;YACvB,QAAQ,EAAE,MAAM,GAAC,IAAI,CAAC;YACtB,MAAM,EAAE,MAAM,GAAC,IAAI,CAAC;YACpB,SAAS,EAAE,OAAO,GAAC,IAAI,CAAA;SACxB,CAAA;KACF,EA2CH;IA/FD,oCAAoC;IACpC,QADW,oFAAiB,IAAI,CACzB;IAEP,qBAAqB;IACrB,YADW,MAAM,CACN;IAEX,qBAAqB;IACrB,aADW,MAAM,CACL;IAEZ,kCAAkC;IAClC,WADW;WAnBH,MAAM;WAAK,MAAM;eAAS,MAAM;gBAAU,MAAM;QAmB9B,IAAI,CACpB;IAEV,qBAAqB;IACrB,WADW,MAAM,CACP;IAEV,0BAA0B;IAC1B,UADW,MAAM,GAAC,IAAI,CACb;IAET,kCAAkC;IAClC,aADW;WA5BH,MAAM;WAAK,MAAM;eAAS,MAAM;gBAAU,MAAM;QA4B9B,IAAI,CAClB;IAEZ,qBAAqB;IACrB,cADW,MAAM,CACJ;IAEb,qBAAqB;IACrB,eADW,MAAM,CACH;IAEd;;;;;OAKG;IACH,YALU;QACL,SAAS,EAAE,MAAM,GAAC,IAAI,CAAC;QAAC,QAAQ,EAAE,MAAM,GAAC,IAAI,CAAC;QAC9C,MAAM,EAAE,MAAM,GAAC,IAAI,CAAC;QAAC,SAAS,EAAE,OAAO,GAAC,IAAI,CAAA;KAC7C,CAEO;IA4IX;;;;;;OAMG;IACH,yBANW;QACN,IAAI,CAAC,EAAE;YAAC,CAAC,EAAE,MAAM,CAAC;YAAC,CAAC,EAAE,MAAM,CAAC;YAAC,KAAK,EAAE,MAAM,CAAC;YAAC,MAAM,EAAE,MAAM,CAAA;SAAC,CAAC;QAC7D,MAAM,CAAC,kFAAkB;KAC1B,GACS,MAAM,CAKlB;IAED;;;;;;;OAOG;IACH,oBAPW,eAAe,GAAC,WAAW,YAC3B;QACN,IAAI,CAAC,EAAE;YAAC,CAAC,EAAE,MAAM,CAAC;YAAC,CAAC,EAAE,MAAM,CAAC;YAAC,KAAK,EAAE,MAAM,CAAC;YAAC,MAAM,EAAE,MAAM,CAAA;SAAC,CAAC;QAC7D,MAAM,CAAC,kFAAkB;KAC1B,GACS,OAAO,CAAC;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAC,EAAE,CAAC,CA2CvD;IAED;;OAEG;IACH,SAFa,UAAU,CAgBtB;IAED;;OAEG;IACH,SAFa,IAAI,CAiBhB;IAGD;;OAEG;IACH,4BAFa,MAAM,CAKlB;;CACJ"}
@@ -0,0 +1,32 @@
1
+ /**
2
+ * WebTransportError polyfill (not yet available in Node/jsdom).
3
+ */
4
+ export class WebTransportError extends DOMException {
5
+ /**
6
+ * @param {{
7
+ * message?: string,
8
+ * source?: "stream"|"session",
9
+ * streamErrorCode?: number|null
10
+ * }} [init]
11
+ */
12
+ constructor({ message, source, streamErrorCode }?: {
13
+ message?: string;
14
+ source?: "stream" | "session";
15
+ streamErrorCode?: number | null;
16
+ });
17
+ _source: "stream" | "session";
18
+ _streamErrorCode: number | null;
19
+ /**
20
+ * @returns {"stream"|"session"}
21
+ */
22
+ get source(): "stream" | "session";
23
+ /**
24
+ * @returns {number|null}
25
+ */
26
+ get streamErrorCode(): number | null;
27
+ /**
28
+ * @returns {string}
29
+ */
30
+ get [Symbol.toStringTag](): string;
31
+ }
32
+ //# sourceMappingURL=WebTransportError.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WebTransportError.d.ts","sourceRoot":"","sources":["../../polyfills/WebTransportError.js"],"names":[],"mappings":"AAAA;;GAEG;AACH;IACI;;;;;;OAMG;IACH,mDANW;QACN,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,MAAM,CAAC,EAAE,QAAQ,GAAC,SAAS,CAAC;QAC5B,eAAe,CAAC,EAAE,MAAM,GAAC,IAAI,CAAA;KAC9B,EAQH;IAFG,8BAAqB;IACrB,gCAAuC;IAG3C;;OAEG;IACH,cAFa,QAAQ,GAAC,SAAS,CAI9B;IAED;;OAEG;IACH,uBAFa,MAAM,GAAC,IAAI,CAIvB;IAGD;;OAEG;IACH,4BAFa,MAAM,CAKlB;CACJ"}