Extracted preferences & entity stubs to make them reusable

This commit is contained in:
koloml committed 2026-06-21 16:18:11 +04:00
1 parent a6eae657c7
commit 978918735d
4 files changed
+64 -63

No files matched your search

+17
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);
}
}