Skip to content

Commit 0f24f76

Browse files
committed
Split as interface from signature
1 parent b169ebb commit 0f24f76

1 file changed

Lines changed: 9 additions & 11 deletions

File tree

src/build/bcd.ts

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -285,19 +285,17 @@ export function getRemovalData(webidl: Browser.WebIdl): Browser.WebIdl {
285285
}) as Browser.WebIdl;
286286
}
287287

288+
interface DataToMap {
289+
key: string;
290+
compat?: CompatStatement;
291+
webkit?: boolean;
292+
mixin: boolean;
293+
parentKey?: string;
294+
}
295+
288296
function mapToBcdCompat(
289297
webidl: Browser.WebIdl,
290-
mapper: ({
291-
key,
292-
compat,
293-
webkit,
294-
}: {
295-
key: string;
296-
compat?: CompatStatement;
297-
webkit?: boolean;
298-
mixin: boolean;
299-
parentKey?: string;
300-
}) => any
298+
mapper: (data: DataToMap) => any
301299
): Browser.WebIdl | undefined {
302300
function mapInterfaceLike(name: string, i: Browser.Interface) {
303301
const intCompat = bcd.api[name]?.__compat;

0 commit comments

Comments
 (0)