- 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
22 lines
336 B
TypeScript
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;
|
|
}
|
|
|