mirror of
https://github.com/unanmed/HumanBreak.git
synced 2025-04-19 08:56:08 +08:00
10 lines
200 B
TypeScript
10 lines
200 B
TypeScript
export abstract class ResourceController<D, T = D> {
|
|
list: Record<string, T> = {};
|
|
|
|
abstract add(uri: string, data: D): void;
|
|
|
|
remove(uri: string) {
|
|
delete this.list[uri];
|
|
}
|
|
}
|