Skip to content

Commit 17a020b

Browse files
authored
Adjust @webref/events listAll return type (#2255)
1 parent 8338cdf commit 17a020b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/build/webref/events.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export async function getInterfaceToEventMap(): Promise<
66
> {
77
const all = await listAll();
88
const map = new Map<string, Map<string, string>>();
9-
for (const item of Object.values(all)) {
9+
for (const item of all) {
1010
const { targets } = item;
1111
for (const target of targets) {
1212
addToNestedMap(map, target.target, item.type, item.interface);

src/build/webref/webref-events.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ declare module "@webref/events" {
1515
targets: Target[];
1616
interface: string;
1717
}
18-
function listAll(): Promise<Record<string, Item>>;
18+
function listAll(): Promise<Array<Item>>;
1919
}

0 commit comments

Comments
 (0)