Skip to content

Commit 9532aaf

Browse files
committed
chore: v2.3.1
1 parent 683f378 commit 9532aaf

File tree

3 files changed

+116
-2
lines changed

3 files changed

+116
-2
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## v2.3.1
4+
5+
- Fix type errors when including `dom.iterable` lib to the project (https://github.com/uhyo/better-typescript-lib/issues/30)
6+
37
## v2.3.0
48

59
This version newly includes improvements for DOM types (`fetch`). Thank you @aaditmshah!

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

+111-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,27 @@ Index: dom.generated.d.ts
55
===================================================================
66
--- dom.generated.d.ts
77
+++ dom.generated.d.ts
8-
@@ -2821,9 +2821,9 @@
8+
@@ -2515,11 +2515,16 @@
9+
new (): AudioParam;
10+
};
11+
12+
interface AudioParamMap {
13+
- forEach(
14+
- callbackfn: (value: AudioParam, key: string, parent: AudioParamMap) => void,
15+
- thisArg?: any
16+
+ forEach<This = undefined>(
17+
+ callbackfn: (
18+
+ this: This,
19+
+ value: AudioParam,
20+
+ key: string,
21+
+ parent: this
22+
+ ) => void,
23+
+ thisArg?: This
24+
): void;
25+
}
26+
27+
declare var AudioParamMap: {
28+
@@ -2821,9 +2826,9 @@
929
readonly bodyUsed: boolean;
1030
arrayBuffer(): Promise<ArrayBuffer>;
1131
blob(): Promise<Blob>;
@@ -16,5 +36,95 @@ Index: dom.generated.d.ts
1636
}
1737

1838
interface BroadcastChannelEventMap {
39+
@@ -5948,11 +5953,11 @@
40+
readonly BUBBLING_PHASE: 3;
41+
};
42+
43+
interface EventCounts {
44+
- forEach(
45+
- callbackfn: (value: number, key: string, parent: EventCounts) => void,
46+
- thisArg?: any
47+
+ forEach<This = undefined>(
48+
+ callbackfn: (this: This, value: number, key: string, parent: this) => void,
49+
+ thisArg?: This
50+
): void;
51+
}
52+
53+
declare var EventCounts: {
54+
@@ -6328,11 +6333,16 @@
55+
readonly ready: Promise<FontFaceSet>;
56+
readonly status: FontFaceSetLoadStatus;
57+
check(font: string, text?: string): boolean;
58+
load(font: string, text?: string): Promise<FontFace[]>;
59+
- forEach(
60+
- callbackfn: (value: FontFace, key: FontFace, parent: FontFaceSet) => void,
61+
- thisArg?: any
62+
+ forEach<This = undefined>(
63+
+ callbackfn: (
64+
+ this: This,
65+
+ value: FontFace,
66+
+ key: FontFace,
67+
+ parent: this
68+
+ ) => void,
69+
+ thisArg?: This
70+
): void;
71+
addEventListener<K extends keyof FontFaceSetEventMap>(
72+
type: K,
73+
listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any,
74+
@@ -11689,11 +11699,16 @@
75+
};
76+
77+
/** Available only in secure contexts. */
78+
interface MIDIInputMap {
79+
- forEach(
80+
- callbackfn: (value: MIDIInput, key: string, parent: MIDIInputMap) => void,
81+
- thisArg?: any
82+
+ forEach<This = undefined>(
83+
+ callbackfn: (
84+
+ this: This,
85+
+ value: MIDIInput,
86+
+ key: string,
87+
+ parent: this
88+
+ ) => void,
89+
+ thisArg?: This
90+
): void;
91+
}
92+
93+
declare var MIDIInputMap: {
94+
@@ -11742,11 +11757,16 @@
95+
};
96+
97+
/** Available only in secure contexts. */
98+
interface MIDIOutputMap {
99+
- forEach(
100+
- callbackfn: (value: MIDIOutput, key: string, parent: MIDIOutputMap) => void,
101+
- thisArg?: any
102+
+ forEach<This = undefined>(
103+
+ callbackfn: (
104+
+ this: This,
105+
+ value: MIDIOutput,
106+
+ key: string,
107+
+ parent: this
108+
+ ) => void,
109+
+ thisArg?: This
110+
): void;
111+
}
112+
113+
declare var MIDIOutputMap: {
114+
@@ -14680,11 +14700,11 @@
115+
new (descriptionInitDict: RTCSessionDescriptionInit): RTCSessionDescription;
116+
};
117+
118+
interface RTCStatsReport {
119+
- forEach(
120+
- callbackfn: (value: any, key: string, parent: RTCStatsReport) => void,
121+
- thisArg?: any
122+
+ forEach<This = undefined>(
123+
+ callbackfn: (this: This, value: unknown, key: string, parent: this) => void,
124+
+ thisArg?: This
125+
): void;
126+
}
127+
128+
declare var RTCStatsReport: {
19129

20130
```

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "better-typescript-lib",
33
"private": true,
4-
"version": "2.3.0",
4+
"version": "2.3.1",
55
"description": "Better TypeScript standard library",
66
"main": "index.js",
77
"devDependencies": {

0 commit comments

Comments
 (0)