lesson-types.ts 600 B

12345678910111213141516171819202122
  1. export type Lesson = {
  2. id: string;
  3. group: string;
  4. title: string;
  5. summary: string;
  6. minutes: number;
  7. objectives: string[];
  8. concepts: { title: string; body: string }[];
  9. steps: {
  10. title: string;
  11. body: string;
  12. code?: string;
  13. lang?: string;
  14. filename?: string;
  15. }[];
  16. checks: string[];
  17. pitfalls: { symptom: string; cause: string; fix: string }[];
  18. exercise: { task: string; hint: string; answer: string };
  19. refs: { label: string; url: string }[];
  20. demo?: 'http' | 'async' | 'protocol';
  21. };
  22. export type Video = { type: 'file' | 'link'; url: string; title?: string };