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"
|
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 = {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user