Skip to content

Commit 8d6bee9

Browse files
committed
chore: v2.4.0
1 parent 9532aaf commit 8d6bee9

21 files changed

+14473
-1810
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## v2.4.0
4+
5+
- Upgraded TypeScript to `5.1.3`.
6+
37
## v2.3.1
48

59
- Fix type errors when including `dom.iterable` lib to the project (https://github.com/uhyo/better-typescript-lib/issues/30)

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ This is because, unlike npm and yarn, by default pnpm does not allow your source
4646

4747
| better-typescript-lib | TypeScript |
4848
| --------------------- | --------------- |
49+
| 2.4.0 | TS 5.1 or later |
4950
| 2.3.0 | TS 5.0 or later |
5051
| 2.2.0 | TS 4.9 or later |
5152
| 2.1.0 | TS 4.6 or later |

TypeScript

Submodule TypeScript updated 6433 files

docs/diff/dom.generated.d.ts.md

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ Index: dom.generated.d.ts
55
===================================================================
66
--- dom.generated.d.ts
77
+++ dom.generated.d.ts
8-
@@ -2515,11 +2515,16 @@
9-
new (): AudioParam;
8+
@@ -2910,11 +2910,16 @@
109
};
1110

11+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParamMap) */
1212
interface AudioParamMap {
1313
- forEach(
1414
- callbackfn: (value: AudioParam, key: string, parent: AudioParamMap) => void,
@@ -25,21 +25,21 @@ Index: dom.generated.d.ts
2525
}
2626

2727
declare var AudioParamMap: {
28-
@@ -2821,9 +2826,9 @@
29-
readonly bodyUsed: boolean;
30-
arrayBuffer(): Promise<ArrayBuffer>;
28+
@@ -3331,9 +3336,9 @@
3129
blob(): Promise<Blob>;
30+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/formData) */
3231
formData(): Promise<FormData>;
32+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/json) */
3333
- json(): Promise<any>;
3434
+ json(): Promise<JSONValue>;
35+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/text) */
3536
text(): Promise<string>;
3637
}
3738

38-
interface BroadcastChannelEventMap {
39-
@@ -5948,11 +5953,11 @@
40-
readonly BUBBLING_PHASE: 3;
39+
@@ -8785,11 +8790,11 @@
4140
};
4241

42+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventCounts) */
4343
interface EventCounts {
4444
- forEach(
4545
- callbackfn: (value: number, key: string, parent: EventCounts) => void,
@@ -51,10 +51,10 @@ Index: dom.generated.d.ts
5151
}
5252

5353
declare var EventCounts: {
54-
@@ -6328,11 +6333,16 @@
55-
readonly ready: Promise<FontFaceSet>;
56-
readonly status: FontFaceSetLoadStatus;
54+
@@ -9331,11 +9336,16 @@
55+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/check) */
5756
check(font: string, text?: string): boolean;
57+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/load) */
5858
load(font: string, text?: string): Promise<FontFace[]>;
5959
- forEach(
6060
- callbackfn: (value: FontFace, key: FontFace, parent: FontFaceSet) => void,
@@ -71,10 +71,10 @@ Index: dom.generated.d.ts
7171
addEventListener<K extends keyof FontFaceSetEventMap>(
7272
type: K,
7373
listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any,
74-
@@ -11689,11 +11699,16 @@
75-
};
76-
77-
/** Available only in secure contexts. */
74+
@@ -16961,11 +16971,16 @@
75+
*
76+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIInputMap)
77+
*/
7878
interface MIDIInputMap {
7979
- forEach(
8080
- callbackfn: (value: MIDIInput, key: string, parent: MIDIInputMap) => void,
@@ -91,10 +91,10 @@ Index: dom.generated.d.ts
9191
}
9292

9393
declare var MIDIInputMap: {
94-
@@ -11742,11 +11757,16 @@
95-
};
96-
97-
/** Available only in secure contexts. */
94+
@@ -17028,11 +17043,16 @@
95+
*
96+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIOutputMap)
97+
*/
9898
interface MIDIOutputMap {
9999
- forEach(
100100
- callbackfn: (value: MIDIOutput, key: string, parent: MIDIOutputMap) => void,
@@ -111,10 +111,10 @@ Index: dom.generated.d.ts
111111
}
112112

113113
declare var MIDIOutputMap: {
114-
@@ -14680,11 +14700,11 @@
115-
new (descriptionInitDict: RTCSessionDescriptionInit): RTCSessionDescription;
114+
@@ -21304,11 +21324,11 @@
116115
};
117116

117+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCStatsReport) */
118118
interface RTCStatsReport {
119119
- forEach(
120120
- callbackfn: (value: any, key: string, parent: RTCStatsReport) => void,

docs/diff/es2015.collection.d.ts.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,8 @@ Index: es2015.collection.d.ts
4949

5050
interface WeakMapConstructor {
5151
- new <K extends object = object, V = any>(
52-
- entries?: readonly [K, V][] | null
5352
+ new <K extends object, V>(
54-
+ entries?: readonly (readonly [K, V])[] | null
53+
entries?: readonly (readonly [K, V])[] | null
5554
): WeakMap<K, V>;
5655
- readonly prototype: WeakMap<object, any>;
5756
+ readonly prototype: WeakMap<object, unknown>;

docs/diff/es2020.bigint.d.ts.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Index: es2020.bigint.d.ts
66
--- es2020.bigint.d.ts
77
+++ es2020.bigint.d.ts
88
@@ -261,20 +261,24 @@
9-
copyWithin(target: number, start: number, end?: number): this;
9+
copyWithin(target: number, start?: number, end?: number): this;
1010

1111
/** Yields index, value pairs for every entry in the array. */
1212
entries(): IterableIterator<[number, bigint]>;
@@ -298,7 +298,7 @@ Index: es2020.bigint.d.ts
298298

299299
declare var BigInt64Array: BigInt64ArrayConstructor;
300300
@@ -592,20 +608,24 @@
301-
copyWithin(target: number, start: number, end?: number): this;
301+
copyWithin(target: number, start?: number, end?: number): this;
302302

303303
/** Yields index, value pairs for every entry in the array. */
304304
entries(): IterableIterator<[number, bigint]>;

0 commit comments

Comments
 (0)