C:\0\src>cat openSync.ts
import fs from "node:fs";
fs.openSync("foo");
C:\0\src>deno --check openSync.ts
Check openSync.ts
TS2554 [ERROR]: Expected 2-3 arguments, but got 1.
fs.openSync("foo");
~~~~~~~~
at file:///C:/0/src/openSync.ts:2:4
An argument for 'flags' was not provided.
export function openSync(path: PathLike, flags: OpenMode, mode?: Mode | null): number;
~~~~~~~~~~~~~~~
at asset:///node/fs.d.cts:2296:46
error: Type checking failed.
info: The program failed type-checking, but it still might work correctly.
hint: Re-run with --no-check to skip type-checking.
Describe the bug
Steps to Reproduce
Expected behavior
No TS error.
flagsis documented optional and seems to work without--check.Actual behavior
Environment