0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-02-22 21:23:32 -05:00
denoland-deno/tests/specs/check/check_node_builtin_modules/mod.ts.out
David Sherret 8971064546
feat: TypeScript 5.7 (#27857)
Co-authored-by: Kenta Moriuchi <moriken@kimamass.com>
2025-01-31 16:07:42 -05:00

19 lines
1.4 KiB
Text

TS2769 [ERROR]: No overload matches this call.
Overload 1 of 3, '(path: PathOrFileDescriptor, options?: { encoding?: null | undefined; flag?: string | undefined; } | null | undefined): Buffer<ArrayBufferLike>', gave the following error.
Type '123' has no properties in common with type '{ encoding?: null | undefined; flag?: string | undefined; }'.
Overload 2 of 3, '(path: PathOrFileDescriptor, options: { encoding: BufferEncoding; flag?: string | undefined; } | BufferEncoding): string', gave the following error.
Argument of type '123' is not assignable to parameter of type '{ encoding: BufferEncoding; flag?: string | undefined; } | BufferEncoding'.
Overload 3 of 3, '(path: PathOrFileDescriptor, options?: BufferEncoding | (ObjectEncodingOptions & { flag?: string | undefined; }) | null | undefined): string | Buffer<...>', gave the following error.
Argument of type '123' is not assignable to parameter of type 'BufferEncoding | (ObjectEncodingOptions & { flag?: string | undefined; }) | null | undefined'.
const _data = fs.readFileSync("./node_builtin.js", 123);
~~~
at file:///[WILDLINE]/mod.ts:2:52
TS4104 [ERROR]: The type 'readonly string[]' is 'readonly' and cannot be assigned to the mutable type 'number[]'.
const _testString: number[] = builtinModules;
~~~~~~~~~~~
at file:///[WILDLINE]/mod.ts:9:7
Found 2 errors.
error: Type checking failed.