20 lines
365 B
TypeScript
20 lines
365 B
TypeScript
export class Page {
|
|
public title: string;
|
|
public type: string;
|
|
|
|
public summary?: string;
|
|
public content: string;
|
|
public exercises?: Exercise[];
|
|
};
|
|
|
|
export class Exercise {
|
|
public name: string;
|
|
public description: string;
|
|
public graders?: Grader[];
|
|
};
|
|
|
|
export class Grader {
|
|
public language: string;
|
|
public style: string;
|
|
public props: any;
|
|
};
|