fix: Better use of @ts-expect-error (#6038)

This commit is contained in:
Kitson Kelly 2020-06-02 14:24:44 +10:00 committed by GitHub
parent 8b1b4766a1
commit 3fe6bc1b82
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
24 changed files with 152 additions and 145 deletions

View file

@ -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;
}