@types/sharedworker 0.0.91 → 0.0.93

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.
package/README.md CHANGED
@@ -28,4 +28,4 @@ This project does not respect semantic versioning as almost every change could p
28
28
 
29
29
  ## Deploy Metadata
30
30
 
31
- You can read what changed in version 0.0.91 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fsharedworker%400.0.91.
31
+ You can read what changed in version 0.0.93 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fsharedworker%400.0.93.
package/index.d.ts CHANGED
@@ -54,6 +54,21 @@ interface BlobPropertyBag {
54
54
  type?: string;
55
55
  }
56
56
 
57
+ interface CSSMatrixComponentOptions {
58
+ is2D?: boolean;
59
+ }
60
+
61
+ interface CSSNumericType {
62
+ angle?: number;
63
+ flex?: number;
64
+ frequency?: number;
65
+ length?: number;
66
+ percent?: number;
67
+ percentHint?: CSSNumericBaseType;
68
+ resolution?: number;
69
+ time?: number;
70
+ }
71
+
57
72
  interface CacheQueryOptions {
58
73
  ignoreMethod?: boolean;
59
74
  ignoreSearch?: boolean;
@@ -475,6 +490,11 @@ interface RegistrationOptions {
475
490
  updateViaCache?: ServiceWorkerUpdateViaCache;
476
491
  }
477
492
 
493
+ interface ReportingObserverOptions {
494
+ buffered?: boolean;
495
+ types?: string[];
496
+ }
497
+
478
498
  interface RequestInit {
479
499
  /** A BodyInit object or null to set request's body. */
480
500
  body?: BodyInit | null;
@@ -790,6 +810,271 @@ declare var ByteLengthQueuingStrategy: {
790
810
  new(init: QueuingStrategyInit): ByteLengthQueuingStrategy;
791
811
  };
792
812
 
813
+ interface CSSImageValue extends CSSStyleValue {
814
+ }
815
+
816
+ declare var CSSImageValue: {
817
+ prototype: CSSImageValue;
818
+ new(): CSSImageValue;
819
+ };
820
+
821
+ interface CSSKeywordValue extends CSSStyleValue {
822
+ value: string;
823
+ }
824
+
825
+ declare var CSSKeywordValue: {
826
+ prototype: CSSKeywordValue;
827
+ new(value: string): CSSKeywordValue;
828
+ };
829
+
830
+ interface CSSMathClamp extends CSSMathValue {
831
+ readonly lower: CSSNumericValue;
832
+ readonly upper: CSSNumericValue;
833
+ readonly value: CSSNumericValue;
834
+ }
835
+
836
+ declare var CSSMathClamp: {
837
+ prototype: CSSMathClamp;
838
+ new(lower: CSSNumberish, value: CSSNumberish, upper: CSSNumberish): CSSMathClamp;
839
+ };
840
+
841
+ interface CSSMathInvert extends CSSMathValue {
842
+ readonly value: CSSNumericValue;
843
+ }
844
+
845
+ declare var CSSMathInvert: {
846
+ prototype: CSSMathInvert;
847
+ new(arg: CSSNumberish): CSSMathInvert;
848
+ };
849
+
850
+ interface CSSMathMax extends CSSMathValue {
851
+ readonly values: CSSNumericArray;
852
+ }
853
+
854
+ declare var CSSMathMax: {
855
+ prototype: CSSMathMax;
856
+ new(...args: CSSNumberish[]): CSSMathMax;
857
+ };
858
+
859
+ interface CSSMathMin extends CSSMathValue {
860
+ readonly values: CSSNumericArray;
861
+ }
862
+
863
+ declare var CSSMathMin: {
864
+ prototype: CSSMathMin;
865
+ new(...args: CSSNumberish[]): CSSMathMin;
866
+ };
867
+
868
+ interface CSSMathNegate extends CSSMathValue {
869
+ readonly value: CSSNumericValue;
870
+ }
871
+
872
+ declare var CSSMathNegate: {
873
+ prototype: CSSMathNegate;
874
+ new(arg: CSSNumberish): CSSMathNegate;
875
+ };
876
+
877
+ interface CSSMathProduct extends CSSMathValue {
878
+ readonly values: CSSNumericArray;
879
+ }
880
+
881
+ declare var CSSMathProduct: {
882
+ prototype: CSSMathProduct;
883
+ new(...args: CSSNumberish[]): CSSMathProduct;
884
+ };
885
+
886
+ interface CSSMathSum extends CSSMathValue {
887
+ readonly values: CSSNumericArray;
888
+ }
889
+
890
+ declare var CSSMathSum: {
891
+ prototype: CSSMathSum;
892
+ new(...args: CSSNumberish[]): CSSMathSum;
893
+ };
894
+
895
+ interface CSSMathValue extends CSSNumericValue {
896
+ readonly operator: CSSMathOperator;
897
+ }
898
+
899
+ declare var CSSMathValue: {
900
+ prototype: CSSMathValue;
901
+ new(): CSSMathValue;
902
+ };
903
+
904
+ interface CSSMatrixComponent extends CSSTransformComponent {
905
+ matrix: DOMMatrix;
906
+ }
907
+
908
+ declare var CSSMatrixComponent: {
909
+ prototype: CSSMatrixComponent;
910
+ new(matrix: DOMMatrixReadOnly, options?: CSSMatrixComponentOptions): CSSMatrixComponent;
911
+ };
912
+
913
+ interface CSSNumericArray {
914
+ readonly length: number;
915
+ forEach(callbackfn: (value: CSSNumericValue, key: number, parent: CSSNumericArray) => void, thisArg?: any): void;
916
+ [index: number]: CSSNumericValue;
917
+ }
918
+
919
+ declare var CSSNumericArray: {
920
+ prototype: CSSNumericArray;
921
+ new(): CSSNumericArray;
922
+ };
923
+
924
+ interface CSSNumericValue extends CSSStyleValue {
925
+ add(...values: CSSNumberish[]): CSSNumericValue;
926
+ div(...values: CSSNumberish[]): CSSNumericValue;
927
+ equals(...value: CSSNumberish[]): boolean;
928
+ max(...values: CSSNumberish[]): CSSNumericValue;
929
+ min(...values: CSSNumberish[]): CSSNumericValue;
930
+ mul(...values: CSSNumberish[]): CSSNumericValue;
931
+ sub(...values: CSSNumberish[]): CSSNumericValue;
932
+ to(unit: string): CSSUnitValue;
933
+ toSum(...units: string[]): CSSMathSum;
934
+ type(): CSSNumericType;
935
+ }
936
+
937
+ declare var CSSNumericValue: {
938
+ prototype: CSSNumericValue;
939
+ new(): CSSNumericValue;
940
+ };
941
+
942
+ interface CSSPerspective extends CSSTransformComponent {
943
+ length: CSSPerspectiveValue;
944
+ }
945
+
946
+ declare var CSSPerspective: {
947
+ prototype: CSSPerspective;
948
+ new(length: CSSPerspectiveValue): CSSPerspective;
949
+ };
950
+
951
+ interface CSSRotate extends CSSTransformComponent {
952
+ angle: CSSNumericValue;
953
+ x: CSSNumberish;
954
+ y: CSSNumberish;
955
+ z: CSSNumberish;
956
+ }
957
+
958
+ declare var CSSRotate: {
959
+ prototype: CSSRotate;
960
+ new(angle: CSSNumericValue): CSSRotate;
961
+ new(x: CSSNumberish, y: CSSNumberish, z: CSSNumberish, angle: CSSNumericValue): CSSRotate;
962
+ };
963
+
964
+ interface CSSScale extends CSSTransformComponent {
965
+ x: CSSNumberish;
966
+ y: CSSNumberish;
967
+ z: CSSNumberish;
968
+ }
969
+
970
+ declare var CSSScale: {
971
+ prototype: CSSScale;
972
+ new(x: CSSNumberish, y: CSSNumberish, z?: CSSNumberish): CSSScale;
973
+ };
974
+
975
+ interface CSSSkew extends CSSTransformComponent {
976
+ ax: CSSNumericValue;
977
+ ay: CSSNumericValue;
978
+ }
979
+
980
+ declare var CSSSkew: {
981
+ prototype: CSSSkew;
982
+ new(ax: CSSNumericValue, ay: CSSNumericValue): CSSSkew;
983
+ };
984
+
985
+ interface CSSSkewX extends CSSTransformComponent {
986
+ ax: CSSNumericValue;
987
+ }
988
+
989
+ declare var CSSSkewX: {
990
+ prototype: CSSSkewX;
991
+ new(ax: CSSNumericValue): CSSSkewX;
992
+ };
993
+
994
+ interface CSSSkewY extends CSSTransformComponent {
995
+ ay: CSSNumericValue;
996
+ }
997
+
998
+ declare var CSSSkewY: {
999
+ prototype: CSSSkewY;
1000
+ new(ay: CSSNumericValue): CSSSkewY;
1001
+ };
1002
+
1003
+ interface CSSStyleValue {
1004
+ toString(): string;
1005
+ }
1006
+
1007
+ declare var CSSStyleValue: {
1008
+ prototype: CSSStyleValue;
1009
+ new(): CSSStyleValue;
1010
+ };
1011
+
1012
+ interface CSSTransformComponent {
1013
+ is2D: boolean;
1014
+ toMatrix(): DOMMatrix;
1015
+ toString(): string;
1016
+ }
1017
+
1018
+ declare var CSSTransformComponent: {
1019
+ prototype: CSSTransformComponent;
1020
+ new(): CSSTransformComponent;
1021
+ };
1022
+
1023
+ interface CSSTransformValue extends CSSStyleValue {
1024
+ readonly is2D: boolean;
1025
+ readonly length: number;
1026
+ toMatrix(): DOMMatrix;
1027
+ forEach(callbackfn: (value: CSSTransformComponent, key: number, parent: CSSTransformValue) => void, thisArg?: any): void;
1028
+ [index: number]: CSSTransformComponent;
1029
+ }
1030
+
1031
+ declare var CSSTransformValue: {
1032
+ prototype: CSSTransformValue;
1033
+ new(transforms: CSSTransformComponent[]): CSSTransformValue;
1034
+ };
1035
+
1036
+ interface CSSTranslate extends CSSTransformComponent {
1037
+ x: CSSNumericValue;
1038
+ y: CSSNumericValue;
1039
+ z: CSSNumericValue;
1040
+ }
1041
+
1042
+ declare var CSSTranslate: {
1043
+ prototype: CSSTranslate;
1044
+ new(x: CSSNumericValue, y: CSSNumericValue, z?: CSSNumericValue): CSSTranslate;
1045
+ };
1046
+
1047
+ interface CSSUnitValue extends CSSNumericValue {
1048
+ readonly unit: string;
1049
+ value: number;
1050
+ }
1051
+
1052
+ declare var CSSUnitValue: {
1053
+ prototype: CSSUnitValue;
1054
+ new(value: number, unit: string): CSSUnitValue;
1055
+ };
1056
+
1057
+ interface CSSUnparsedValue extends CSSStyleValue {
1058
+ readonly length: number;
1059
+ forEach(callbackfn: (value: CSSUnparsedSegment, key: number, parent: CSSUnparsedValue) => void, thisArg?: any): void;
1060
+ [index: number]: CSSUnparsedSegment;
1061
+ }
1062
+
1063
+ declare var CSSUnparsedValue: {
1064
+ prototype: CSSUnparsedValue;
1065
+ new(members: CSSUnparsedSegment[]): CSSUnparsedValue;
1066
+ };
1067
+
1068
+ interface CSSVariableReferenceValue {
1069
+ readonly fallback: CSSUnparsedValue | null;
1070
+ variable: string;
1071
+ }
1072
+
1073
+ declare var CSSVariableReferenceValue: {
1074
+ prototype: CSSVariableReferenceValue;
1075
+ new(variable: string, fallback?: CSSUnparsedValue | null): CSSVariableReferenceValue;
1076
+ };
1077
+
793
1078
  /**
794
1079
  * 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.
795
1080
  * Available only in secure contexts.
@@ -984,6 +1269,14 @@ declare var CloseEvent: {
984
1269
  new(type: string, eventInitDict?: CloseEventInit): CloseEvent;
985
1270
  };
986
1271
 
1272
+ interface CompressionStream extends GenericTransformStream {
1273
+ }
1274
+
1275
+ declare var CompressionStream: {
1276
+ prototype: CompressionStream;
1277
+ new(format: string): CompressionStream;
1278
+ };
1279
+
987
1280
  /** This Streams API interface provides a built-in byte length queuing strategy that can be used when constructing streams. */
988
1281
  interface CountQueuingStrategy extends QueuingStrategy {
989
1282
  readonly highWaterMark: number;
@@ -1288,6 +1581,14 @@ declare var DOMStringList: {
1288
1581
  new(): DOMStringList;
1289
1582
  };
1290
1583
 
1584
+ interface DecompressionStream extends GenericTransformStream {
1585
+ }
1586
+
1587
+ declare var DecompressionStream: {
1588
+ prototype: DecompressionStream;
1589
+ new(format: string): DecompressionStream;
1590
+ };
1591
+
1291
1592
  interface EXT_blend_minmax {
1292
1593
  readonly MIN_EXT: 0x8007;
1293
1594
  readonly MAX_EXT: 0x8008;
@@ -2764,6 +3065,38 @@ interface ReadableStreamGenericReader {
2764
3065
  cancel(reason?: any): Promise<void>;
2765
3066
  }
2766
3067
 
3068
+ interface Report {
3069
+ readonly body: ReportBody | null;
3070
+ readonly type: string;
3071
+ readonly url: string;
3072
+ toJSON(): any;
3073
+ }
3074
+
3075
+ declare var Report: {
3076
+ prototype: Report;
3077
+ new(): Report;
3078
+ };
3079
+
3080
+ interface ReportBody {
3081
+ toJSON(): any;
3082
+ }
3083
+
3084
+ declare var ReportBody: {
3085
+ prototype: ReportBody;
3086
+ new(): ReportBody;
3087
+ };
3088
+
3089
+ interface ReportingObserver {
3090
+ disconnect(): void;
3091
+ observe(): void;
3092
+ takeRecords(): ReportList;
3093
+ }
3094
+
3095
+ declare var ReportingObserver: {
3096
+ prototype: ReportingObserver;
3097
+ new(callback: ReportingObserverCallback, options?: ReportingObserverOptions): ReportingObserver;
3098
+ };
3099
+
2767
3100
  /** This Fetch API interface represents a resource request. */
2768
3101
  interface Request extends Body {
2769
3102
  /** Returns the cache mode associated with request, which is a string indicating how the request will interact with the browser's cache when fetching. */
@@ -2961,6 +3294,19 @@ declare var StorageManager: {
2961
3294
  new(): StorageManager;
2962
3295
  };
2963
3296
 
3297
+ interface StylePropertyMapReadOnly {
3298
+ readonly size: number;
3299
+ get(property: string): undefined | CSSStyleValue;
3300
+ getAll(property: string): CSSStyleValue[];
3301
+ has(property: string): boolean;
3302
+ forEach(callbackfn: (value: CSSStyleValue[], key: string, parent: StylePropertyMapReadOnly) => void, thisArg?: any): void;
3303
+ }
3304
+
3305
+ declare var StylePropertyMapReadOnly: {
3306
+ prototype: StylePropertyMapReadOnly;
3307
+ new(): StylePropertyMapReadOnly;
3308
+ };
3309
+
2964
3310
  /**
2965
3311
  * 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).
2966
3312
  * Available only in secure contexts.
@@ -3151,7 +3497,6 @@ interface URLSearchParams {
3151
3497
  declare var URLSearchParams: {
3152
3498
  prototype: URLSearchParams;
3153
3499
  new(init?: string[][] | Record<string, string> | string | URLSearchParams): URLSearchParams;
3154
- toString(): string;
3155
3500
  };
3156
3501
 
3157
3502
  interface WEBGL_color_buffer_float {
@@ -4632,6 +4977,7 @@ declare var WebGLRenderingContext: {
4632
4977
  };
4633
4978
 
4634
4979
  interface WebGLRenderingContextBase {
4980
+ drawingBufferColorSpace: PredefinedColorSpace;
4635
4981
  readonly drawingBufferHeight: GLsizei;
4636
4982
  readonly drawingBufferWidth: GLsizei;
4637
4983
  activeTexture(texture: GLenum): void;
@@ -5344,6 +5690,7 @@ declare var WorkerLocation: {
5344
5690
  /** 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. */
5345
5691
  interface WorkerNavigator extends NavigatorConcurrentHardware, NavigatorID, NavigatorLanguage, NavigatorLocks, NavigatorOnLine, NavigatorStorage {
5346
5692
  readonly mediaCapabilities: MediaCapabilities;
5693
+ readonly permissions: Permissions;
5347
5694
  }
5348
5695
 
5349
5696
  declare var WorkerNavigator: {
@@ -5704,6 +6051,10 @@ interface QueuingStrategySize<T = any> {
5704
6051
  (chunk: T): number;
5705
6052
  }
5706
6053
 
6054
+ interface ReportingObserverCallback {
6055
+ (reports: Report[], observer: ReportingObserver): void;
6056
+ }
6057
+
5707
6058
  interface TransformerFlushCallback<O> {
5708
6059
  (controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;
5709
6060
  }
@@ -5802,6 +6153,10 @@ type BinaryData = ArrayBuffer | ArrayBufferView;
5802
6153
  type BlobPart = BufferSource | Blob | string;
5803
6154
  type BodyInit = ReadableStream | XMLHttpRequestBodyInit;
5804
6155
  type BufferSource = ArrayBufferView | ArrayBuffer;
6156
+ type CSSKeywordish = string | CSSKeywordValue;
6157
+ type CSSNumberish = number | CSSNumericValue;
6158
+ type CSSPerspectiveValue = CSSNumericValue | CSSKeywordish;
6159
+ type CSSUnparsedSegment = string | CSSVariableReferenceValue;
5805
6160
  type CanvasImageSource = ImageBitmap | OffscreenCanvas;
5806
6161
  type DOMHighResTimeStamp = number;
5807
6162
  type EpochTimeStamp = number;
@@ -5833,6 +6188,7 @@ type PerformanceEntryList = PerformanceEntry[];
5833
6188
  type ReadableStreamController<T> = ReadableStreamDefaultController<T> | ReadableByteStreamController;
5834
6189
  type ReadableStreamReadResult<T> = ReadableStreamReadValueResult<T> | ReadableStreamReadDoneResult<T>;
5835
6190
  type ReadableStreamReader<T> = ReadableStreamDefaultReader<T> | ReadableStreamBYOBReader;
6191
+ type ReportList = Report[];
5836
6192
  type RequestInfo = Request | string;
5837
6193
  type TexImageSource = ImageBitmap | ImageData | OffscreenCanvas;
5838
6194
  type TimerHandler = string | Function;
@@ -5841,6 +6197,8 @@ type Uint32List = Uint32Array | GLuint[];
5841
6197
  type VibratePattern = number | number[];
5842
6198
  type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string;
5843
6199
  type BinaryType = "arraybuffer" | "blob";
6200
+ type CSSMathOperator = "clamp" | "invert" | "max" | "min" | "negate" | "product" | "sum";
6201
+ type CSSNumericBaseType = "angle" | "flex" | "frequency" | "length" | "percent" | "resolution" | "time";
5844
6202
  type CanvasDirection = "inherit" | "ltr" | "rtl";
5845
6203
  type CanvasFillRule = "evenodd" | "nonzero";
5846
6204
  type CanvasFontKerning = "auto" | "none" | "normal";
package/iterable.d.ts CHANGED
@@ -2,6 +2,27 @@
2
2
  /// SharedWorker Iterable APIs
3
3
  /////////////////////////////
4
4
 
5
+ interface CSSNumericArray {
6
+ [Symbol.iterator](): IterableIterator<CSSNumericValue>;
7
+ entries(): IterableIterator<[number, CSSNumericValue]>;
8
+ keys(): IterableIterator<number>;
9
+ values(): IterableIterator<CSSNumericValue>;
10
+ }
11
+
12
+ interface CSSTransformValue {
13
+ [Symbol.iterator](): IterableIterator<CSSTransformComponent>;
14
+ entries(): IterableIterator<[number, CSSTransformComponent]>;
15
+ keys(): IterableIterator<number>;
16
+ values(): IterableIterator<CSSTransformComponent>;
17
+ }
18
+
19
+ interface CSSUnparsedValue {
20
+ [Symbol.iterator](): IterableIterator<CSSUnparsedSegment>;
21
+ entries(): IterableIterator<[number, CSSUnparsedSegment]>;
22
+ keys(): IterableIterator<number>;
23
+ values(): IterableIterator<CSSUnparsedSegment>;
24
+ }
25
+
5
26
  interface Cache {
6
27
  addAll(requests: Iterable<RequestInfo>): Promise<void>;
7
28
  }
@@ -64,6 +85,13 @@ interface MessageEvent<T = any> {
64
85
  initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: Iterable<MessagePort>): void;
65
86
  }
66
87
 
88
+ interface StylePropertyMapReadOnly {
89
+ [Symbol.iterator](): IterableIterator<[string, Iterable<CSSStyleValue>]>;
90
+ entries(): IterableIterator<[string, Iterable<CSSStyleValue>]>;
91
+ keys(): IterableIterator<string>;
92
+ values(): IterableIterator<Iterable<CSSStyleValue>>;
93
+ }
94
+
67
95
  interface SubtleCrypto {
68
96
  deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
69
97
  generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/sharedworker",
3
- "version": "0.0.91",
3
+ "version": "0.0.93",
4
4
  "description": "Types for the global scope of Shared Workers",
5
5
  "license": "Apache-2.0",
6
6
  "contributors": [],