lesson-types.ts 730 B

1234567891011121314151617181920212223242526272829303132
  1. export type Lesson = {
  2. id: string;
  3. group: string;
  4. title: string;
  5. summary: string;
  6. objectives: string[];
  7. concepts: { title: string; body: string }[];
  8. steps: {
  9. title: string;
  10. body: string;
  11. code?: string;
  12. lang?: string;
  13. filename?: string;
  14. }[];
  15. checks: string[];
  16. pitfalls: { symptom: string; cause: string; fix: string }[];
  17. exercise: { task: string; hint: string; answer: string };
  18. refs: { label: string; url: string }[];
  19. demo?: 'http' | 'async' | 'protocol';
  20. production?: {
  21. scenario: string;
  22. decisions: string[];
  23. failureDrill: string;
  24. acceptance: string[];
  25. };
  26. };
  27. export type Video = {
  28. type: 'file' | 'link';
  29. url: string;
  30. title?: string;
  31. captions?: string;
  32. };