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" import { _documents } from "src/_mock"
export type Doc = { export class Doc {
id: number, id!: number;
name: string, name!: string;
data: Uint8Array, data!: Uint8Array;
addedWhen: Date, addedWhen!: Date;
addedWho: string, addedWho!: string;
changedWhen?: Date, changedWhen?: Date;
changedWho?: string changedWho?: string;
} }
export type DocQuery = { export type DocQuery = {