mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 08:28:19 +01:00
chore: ♻️ Replace all @ts-ignore with @ts-expect-error
This commit is contained in:
parent
a8132e8d53
commit
2cf1537a7e
|
|
@ -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": {
|
"organizeImports": {
|
||||||
"enabled": true,
|
"enabled": true,
|
||||||
"ignore": ["node_modules", "dist", "glitch", "glitch-dev"]
|
"ignore": ["node_modules", "dist", "glitch", "glitch-dev"]
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,7 @@ describe("DiskMediaDriver", () => {
|
||||||
}))();
|
}))();
|
||||||
|
|
||||||
diskDriver = new DiskMediaDriver(mockConfig);
|
diskDriver = new DiskMediaDriver(mockConfig);
|
||||||
// @ts-ignore: Replacing private property for testing
|
// @ts-expect-error: Replacing private property for testing
|
||||||
diskDriver.mediaHasher = mockMediaHasher;
|
diskDriver.mediaHasher = mockMediaHasher;
|
||||||
|
|
||||||
// Mock fs.promises methods
|
// Mock fs.promises methods
|
||||||
|
|
|
||||||
|
|
@ -43,9 +43,9 @@ describe("S3MediaDriver", () => {
|
||||||
}))();
|
}))();
|
||||||
|
|
||||||
s3Driver = new S3MediaDriver(mockConfig);
|
s3Driver = new S3MediaDriver(mockConfig);
|
||||||
// @ts-ignore: Replacing private property for testing
|
// @ts-expect-error: Replacing private property for testing
|
||||||
s3Driver.s3Client = mockS3Client;
|
s3Driver.s3Client = mockS3Client;
|
||||||
// @ts-ignore: Replacing private property for testing
|
// @ts-expect-error: Replacing private property for testing
|
||||||
s3Driver.mediaHasher = mockMediaHasher;
|
s3Driver.mediaHasher = mockMediaHasher;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -344,10 +344,10 @@ export const qsQuery = () => {
|
||||||
interpretNumericEntities: true,
|
interpretNumericEntities: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
// @ts-ignore Very bad hack
|
// @ts-expect-error Very bad hack
|
||||||
context.req.query = () => parsed;
|
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;
|
context.req.queries = () => parsed;
|
||||||
await next();
|
await next();
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue