mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 10:59:13 +00:00
fix: Better use of @ts-expect-error (#6038)
This commit is contained in:
parent
8b1b4766a1
commit
3fe6bc1b82
24 changed files with 152 additions and 145 deletions
|
@ -290,8 +290,8 @@ unitTest(
|
|||
// writing null should throw an error
|
||||
let err;
|
||||
try {
|
||||
// @ts-expect-error
|
||||
await file.write(null);
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
await file.write(null as any);
|
||||
} catch (e) {
|
||||
err = e;
|
||||
}
|
||||
|
@ -322,8 +322,8 @@ unitTest(
|
|||
// reading file into null buffer should throw an error
|
||||
let err;
|
||||
try {
|
||||
// @ts-expect-error
|
||||
await file.read(null);
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
await file.read(null as any);
|
||||
} catch (e) {
|
||||
err = e;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue