This commit is contained in:
Kilton937342 2022-10-13 18:10:13 +02:00
parent d22f4d7578
commit 96a12939c8

View File

@ -17,21 +17,27 @@ export type ExerciceShort = {
}; };
export type Author = { export type Author = {
username: string username: string;
} };
type supports = {
pdf: boolean;
csv: boolean;
web: boolean;
};
export type Exercice = { export type Exercice = {
id_code: string; id_code: string;
name: string; name: string;
consigne: string; consigne: string;
pdfSupport: boolean; supports: supports;
csvSupport: boolean;
webSupport: boolean;
tags: Array<Tag>; tags: Array<Tag>;
is_author: boolean; is_author: boolean;
examples: { type: string; data: Array<{ calcul: string }> }; examples: {
private: boolean, type: string;
exo_source_name: string data: Array<{ calcul: string; correction: string }>;
author: Author, };
origin: {id_code: string} | null private: boolean;
exo_source_name: string;
author: Author;
origin: { id_code: string } | null;
}; };