Skip to content

Commit 66df9ff

Browse files
committed
Add API doc to Global module
1 parent 2a52a02 commit 66df9ff

File tree

9 files changed

+441
-57
lines changed

9 files changed

+441
-57
lines changed

src/Global.res

Lines changed: 428 additions & 0 deletions
Large diffs are not rendered by default.

src/PictureInPicture.js

Lines changed: 0 additions & 2 deletions
This file was deleted.

src/PictureInPicture.res

Lines changed: 0 additions & 18 deletions
This file was deleted.

src/WebAudioAPI/AudioListener.js

Lines changed: 0 additions & 9 deletions
This file was deleted.

src/WebAudioAPI/AudioListener.res

Lines changed: 0 additions & 1 deletion
This file was deleted.

tests/DOMAPI/HTMLInputElement__test.js

Lines changed: 0 additions & 12 deletions
This file was deleted.

tests/DOMAPI/Location__test.js

Lines changed: 0 additions & 14 deletions
This file was deleted.

tests/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ const successGreen = "\x1b[32m";
1515
const warningYellow = "\x1b[33m";
1616
const resetColor = "\x1b[0m";
1717

18+
console.log(testsDir);
19+
1820
// Assert nothing changed
1921
const gitDff = execSync("git ls-files --modified .", {
2022
cwd: testsDir,
@@ -26,6 +28,6 @@ if (!gitDff) {
2628
console.log(
2729
`${warningYellow}⚠️ There are unstaged differences in tests! Did you break a test?\n${gitDff}${resetColor}`,
2830
);
29-
execSync("git --no-pager diff .", { stdio: "inherit" });
31+
execSync("git --no-pager diff .", { stdio: "inherit", cwd: testsDir });
3032
exit(1);
3133
}

tools/TypeScript-DOM-lib-generator/src/build/emitter.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1563,9 +1563,14 @@ export async function emitRescriptBindings(webidl: Browser.WebIdl) {
15631563
? `${property.name}_`
15641564
: property.name;
15651565

1566+
printComment({
1567+
mdnUrl: property.mdnUrl,
1568+
comment: property.comment,
1569+
});
15661570
printer.printLine(
15671571
`external ${name}: ${transformPropertyValue(windowInterface, property)} = "${property.name}"`,
15681572
);
1573+
printer.endLine();
15691574
}
15701575

15711576
printer.endLine();
@@ -1583,6 +1588,11 @@ export async function emitRescriptBindings(webidl: Browser.WebIdl) {
15831588
dedupeMethod.name,
15841589
dedupedMethod.signature[0],
15851590
);
1591+
1592+
printComment({
1593+
mdnUrl: method.mdnUrl,
1594+
comment: method.comment,
1595+
});
15861596
printer.printLine(
15871597
`external ${mapMethodName(method, suffix)}: (${ps}) => ${mapMethodReturnType(signature)} = "${method.name}"`,
15881598
);

0 commit comments

Comments
 (0)