Skip to content

Commit 93dae5c

Browse files
cknittclaude
andcommitted
Type the helpers of the cmi_magic_number build test
yarn typecheck rejected their implicitly typed parameters. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QFCgV9acRwi6ohFaj9atR8 Signed-off-by: Christoph Knittel <ck@cca.io>
1 parent d91731f commit 93dae5c

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

  • tests/build_tests/cmi_magic_number

‎tests/build_tests/cmi_magic_number/input.js‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ const { bsc } = setup(import.meta.dirname);
1010
const generatedDir = await fs.mkdtemp(
1111
path.join(import.meta.dirname, "generated-"),
1212
);
13+
/** @param {string} file */
1314
const compile = file =>
1415
bsc(["-nostdlib", "-nopervasives", "-I", generatedDir, file], {
1516
cwd: generatedDir,
@@ -25,7 +26,10 @@ try {
2526
const magic = contents.subarray(0, 9).toString("latin1");
2627
assert.match(magic, /^ResCmi\d{3}$/);
2728

28-
// Replaces the magic number of A.cmi and compiles a module that reads it.
29+
/**
30+
* Replaces the magic number of A.cmi and compiles a module that reads it.
31+
* @param {string} header
32+
*/
2933
const readWith = async header => {
3034
await fs.writeFile(
3135
cmi,

0 commit comments

Comments
 (0)