Refactor: Konvertierung von Doc-Typ-Alias in Klasse mit eindeutigen Zuweisungsbestätigungen

This commit is contained in:
tekh 2025-07-11 11:00:51 +02:00
parent 617ad611ed
commit 24c3bf0324

View File

@ -1,13 +1,13 @@
import { _documents } from "src/_mock"
export type Doc = {
id: number,
name: string,
data: Uint8Array,
addedWhen: Date,
addedWho: string,
changedWhen?: Date,
changedWho?: string
export class Doc {
id!: number;
name!: string;
data!: Uint8Array;
addedWhen!: Date;
addedWho!: string;
changedWhen?: Date;
changedWho?: string;
}
export type DocQuery = {