1
0
mirror of https://github.com/koloml/philomena-tagging-assistant.git synced 2026-06-24 02:32:21 +00:00

Extracted preferences & entity stubs to make them reusable

This commit is contained in:
2026-06-21 16:18:11 +04:00
parent a6eae657c7
commit 978918735d
4 changed files with 64 additions and 63 deletions

17
tests/stubs/Entity.ts Normal file
View File

@@ -0,0 +1,17 @@
import StorageEntity from "$lib/extension/base/StorageEntity";
export interface TestedSettings {
stringField: string;
numberField: number;
nested?: {
field: boolean;
};
}
export class TestedEntity extends StorageEntity<TestedSettings> {
static readonly _entityName = "entity";
constructor(id: string, settings: TestedSettings) {
super(id, settings);
}
}