Files
ProxmoxVE-Local/src/types/server.ts
Michel Roegl-Brunner 433d8121e8 Fix TypeScript and ESLint errors (#31)
- Add proper type annotations for WebSocketMessage and ServerInfo types
- Fix type imports to use type-only imports where appropriate
- Replace logical OR operators with nullish coalescing operators
- Fix floating promises by adding void operator
- Add proper type assertions for database results
- Fix useEffect dependencies in Terminal component
- Remove unused variables and fix unescaped entities
- Add JSDoc type annotations for database methods
- Fix singleton instance type annotations
2025-09-30 11:30:43 +02:00

22 lines
336 B
TypeScript

export interface Server {
id: number;
name: string;
ip: string;
user: string;
password: string;
created_at: string;
updated_at: string;
}
export interface CreateServerData {
name: string;
ip: string;
user: string;
password: string;
}
export interface UpdateServerData extends CreateServerData {
id: number;
}