refactor: remove unused exported type interfaces
All checks were successful
Deploy to Homelab / deploy (push) Successful in 19s
All checks were successful
Deploy to Homelab / deploy (push) Successful in 19s
CreateFileParams, UserRow, CreateUserParams, and MultipartFile were exported but never imported outside their own modules. Narrowed visibility to module-local to keep the public surface minimal. Confirmed with knip (zero findings) and all 61 tests passing.
This commit is contained in:
@@ -10,7 +10,7 @@ export interface FileRow {
|
|||||||
created_at: string;
|
created_at: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface CreateFileParams {
|
interface CreateFileParams {
|
||||||
id: string;
|
id: string;
|
||||||
userId: number;
|
userId: number;
|
||||||
originalName: string;
|
originalName: string;
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
import type Database from 'better-sqlite3';
|
import type Database from 'better-sqlite3';
|
||||||
|
|
||||||
export interface UserRow {
|
interface UserRow {
|
||||||
id: number;
|
id: number;
|
||||||
username: string;
|
username: string;
|
||||||
password_hash: string;
|
password_hash: string;
|
||||||
created_at: string;
|
created_at: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface CreateUserParams {
|
interface CreateUserParams {
|
||||||
username: string;
|
username: string;
|
||||||
passwordHash: string;
|
passwordHash: string;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ export async function loginAs(app: FastifyInstance, username: string, password:
|
|||||||
return cookie.split(';')[0].replace('token=', '');
|
return cookie.split(';')[0].replace('token=', '');
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface MultipartFile {
|
interface MultipartFile {
|
||||||
filename: string;
|
filename: string;
|
||||||
contentType: string;
|
contentType: string;
|
||||||
data: Buffer;
|
data: Buffer;
|
||||||
|
|||||||
Reference in New Issue
Block a user