typescript 4.4.4 → 4.5.2

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 (42) hide show
  1. package/SECURITY.md +41 -0
  2. package/lib/cancellationToken.js +1 -1
  3. package/lib/cs/diagnosticMessages.generated.json +53 -61
  4. package/lib/de/diagnosticMessages.generated.json +56 -64
  5. package/lib/es/diagnosticMessages.generated.json +54 -62
  6. package/lib/fr/diagnosticMessages.generated.json +56 -64
  7. package/lib/it/diagnosticMessages.generated.json +56 -64
  8. package/lib/ja/diagnosticMessages.generated.json +56 -64
  9. package/lib/ko/diagnosticMessages.generated.json +53 -61
  10. package/lib/lib.dom.d.ts +854 -1987
  11. package/lib/lib.dom.iterable.d.ts +17 -55
  12. package/lib/lib.es2015.core.d.ts +53 -13
  13. package/lib/lib.es2015.iterable.d.ts +2 -10
  14. package/lib/lib.es2015.promise.d.ts +2 -74
  15. package/lib/lib.es2018.intl.d.ts +23 -11
  16. package/lib/lib.es2019.string.d.ts +8 -2
  17. package/lib/lib.es2020.intl.d.ts +173 -114
  18. package/lib/lib.es2020.promise.d.ts +2 -3
  19. package/lib/lib.es2021.d.ts +1 -0
  20. package/lib/lib.es2021.intl.d.ts +44 -0
  21. package/lib/lib.es2021.promise.d.ts +8 -1
  22. package/lib/lib.es5.d.ts +103 -43
  23. package/lib/lib.esnext.intl.d.ts +1 -10
  24. package/lib/lib.webworker.d.ts +241 -537
  25. package/lib/lib.webworker.iterable.d.ts +10 -37
  26. package/lib/pl/diagnosticMessages.generated.json +56 -64
  27. package/lib/protocol.d.ts +8 -0
  28. package/lib/pt-br/diagnosticMessages.generated.json +56 -64
  29. package/lib/ru/diagnosticMessages.generated.json +54 -62
  30. package/lib/tr/diagnosticMessages.generated.json +56 -64
  31. package/lib/tsc.js +7888 -5950
  32. package/lib/tsserver.js +13027 -9749
  33. package/lib/tsserverlibrary.d.ts +411 -287
  34. package/lib/tsserverlibrary.js +13002 -9724
  35. package/lib/typescript.d.ts +401 -285
  36. package/lib/typescript.js +12879 -9617
  37. package/lib/typescriptServices.d.ts +401 -285
  38. package/lib/typescriptServices.js +12879 -9617
  39. package/lib/typingsInstaller.js +9179 -6936
  40. package/lib/zh-cn/diagnosticMessages.generated.json +56 -64
  41. package/lib/zh-tw/diagnosticMessages.generated.json +56 -64
  42. package/package.json +5 -7
@@ -39,40 +39,26 @@ interface FontFaceSet extends Set<FontFace> {
39
39
 
40
40
  interface FormData {
41
41
  [Symbol.iterator](): IterableIterator<[string, FormDataEntryValue]>;
42
- /**
43
- * Returns an array of key, value pairs for every entry in the list.
44
- */
42
+ /** Returns an array of key, value pairs for every entry in the list. */
45
43
  entries(): IterableIterator<[string, FormDataEntryValue]>;
46
- /**
47
- * Returns a list of keys in the list.
48
- */
44
+ /** Returns a list of keys in the list. */
49
45
  keys(): IterableIterator<string>;
50
- /**
51
- * Returns a list of values in the list.
52
- */
46
+ /** Returns a list of values in the list. */
53
47
  values(): IterableIterator<FormDataEntryValue>;
54
48
  }
55
49
 
56
50
  interface Headers {
57
51
  [Symbol.iterator](): IterableIterator<[string, string]>;
58
- /**
59
- * Returns an iterator allowing to go through all key/value pairs contained in this object.
60
- */
52
+ /** Returns an iterator allowing to go through all key/value pairs contained in this object. */
61
53
  entries(): IterableIterator<[string, string]>;
62
- /**
63
- * Returns an iterator allowing to go through all keys of the key/value pairs contained in this object.
64
- */
54
+ /** Returns an iterator allowing to go through all keys of the key/value pairs contained in this object. */
65
55
  keys(): IterableIterator<string>;
66
- /**
67
- * Returns an iterator allowing to go through all values of the key/value pairs contained in this object.
68
- */
56
+ /** Returns an iterator allowing to go through all values of the key/value pairs contained in this object. */
69
57
  values(): IterableIterator<string>;
70
58
  }
71
59
 
72
60
  interface IDBDatabase {
73
- /**
74
- * 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.
75
- */
61
+ /** 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. */
76
62
  transaction(storeNames: string | Iterable<string>, mode?: IDBTransactionMode): IDBTransaction;
77
63
  }
78
64
 
@@ -90,13 +76,6 @@ interface MessageEvent<T = any> {
90
76
  initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: Iterable<MessagePort>): void;
91
77
  }
92
78
 
93
- interface ReadableStream<R = any> {
94
- [Symbol.iterator](): IterableIterator<any>;
95
- entries(): IterableIterator<[number, any]>;
96
- keys(): IterableIterator<number>;
97
- values(): IterableIterator<any>;
98
- }
99
-
100
79
  interface SubtleCrypto {
101
80
  deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
102
81
  generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKeyPair>;
@@ -109,17 +88,11 @@ interface SubtleCrypto {
109
88
 
110
89
  interface URLSearchParams {
111
90
  [Symbol.iterator](): IterableIterator<[string, string]>;
112
- /**
113
- * Returns an array of key, value pairs for every entry in the search params.
114
- */
91
+ /** Returns an array of key, value pairs for every entry in the search params. */
115
92
  entries(): IterableIterator<[string, string]>;
116
- /**
117
- * Returns a list of keys in the search params.
118
- */
93
+ /** Returns a list of keys in the search params. */
119
94
  keys(): IterableIterator<string>;
120
- /**
121
- * Returns a list of values in the search params.
122
- */
95
+ /** Returns a list of values in the search params. */
123
96
  values(): IterableIterator<string>;
124
97
  }
125
98