tethys.backend/resources/js/Dataset.ts

30 lines
661 B
TypeScript
Raw Normal View History

2023-03-17 15:13:37 +00:00
import { Ref } from 'vue';
export interface Dataset {
[key: string]: string | Ref<string>| boolean | Array<Title> | (IErrorMessage | undefined);
language: Ref<string>;
// licenses: Array<number>;
rights: boolean;
type: string;
creating_corporation: string;
titles: Array<Title>;
descriptions: Array<Description>;
errors?: IErrorMessage;
// async (user): Promise<void>;
}
export interface Title {
value: string;
type: string;
language: string | Ref<string>;
}
export interface Description {
value: string;
type: string;
language: string | Ref<string>;
}
interface IErrorMessage {
[key: string]: Array<string>;
}