Refactor: Konvertierung von Doc-Typ-Alias in Klasse mit eindeutigen Zuweisungsbestätigungen
This commit is contained in:
parent
617ad611ed
commit
24c3bf0324
@ -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 = {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user