Files
Modrinth-plus/apps/frontend/src/composables/servers/modules/base.ts

16 lines
305 B
TypeScript
Raw Normal View History

import type { ModrinthServer } from '../modrinth-servers.ts'
export abstract class ServerModule {
protected server: ModrinthServer
constructor(server: ModrinthServer) {
this.server = server
}
protected get serverId(): string {
return this.server.serverId
}
abstract fetch(): Promise<void>
}