chore: ♻️ Replace all @ts-ignore with @ts-expect-error

This commit is contained in:
Jesse Wierzbinski 2024-06-28 21:33:19 -10:00
parent a8132e8d53
commit 2cf1537a7e
No known key found for this signature in database
4 changed files with 6 additions and 6 deletions

View file

@ -1,5 +1,5 @@
{
"$schema": "https://biomejs.dev/schemas/1.8.1/schema.json",
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
"organizeImports": {
"enabled": true,
"ignore": ["node_modules", "dist", "glitch", "glitch-dev"]

View file

@ -36,7 +36,7 @@ describe("DiskMediaDriver", () => {
}))();
diskDriver = new DiskMediaDriver(mockConfig);
// @ts-ignore: Replacing private property for testing
// @ts-expect-error: Replacing private property for testing
diskDriver.mediaHasher = mockMediaHasher;
// Mock fs.promises methods

View file

@ -43,9 +43,9 @@ describe("S3MediaDriver", () => {
}))();
s3Driver = new S3MediaDriver(mockConfig);
// @ts-ignore: Replacing private property for testing
// @ts-expect-error: Replacing private property for testing
s3Driver.s3Client = mockS3Client;
// @ts-ignore: Replacing private property for testing
// @ts-expect-error: Replacing private property for testing
s3Driver.mediaHasher = mockMediaHasher;
});

View file

@ -344,10 +344,10 @@ export const qsQuery = () => {
interpretNumericEntities: true,
});
// @ts-ignore Very bad hack
// @ts-expect-error Very bad hack
context.req.query = () => parsed;
// @ts-ignore I'm so sorry for this
// @ts-expect-error I'm so sorry for this
context.req.queries = () => parsed;
await next();
});