Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

primitives.ts 1.0KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. export enum Markers {
  2. start = '/**',
  3. nostart = '/***',
  4. delim = '*',
  5. end = '*/',
  6. }
  7. export interface Block {
  8. description: string;
  9. tags: Spec[];
  10. source: Line[];
  11. problems: Problem[];
  12. }
  13. export interface Spec {
  14. tag: string;
  15. name: string;
  16. default?: string;
  17. type: string;
  18. optional: boolean;
  19. description: string;
  20. problems: Problem[];
  21. source: Line[];
  22. }
  23. export interface Line {
  24. number: number;
  25. source: string;
  26. tokens: Tokens;
  27. }
  28. export interface Tokens {
  29. start: string;
  30. delimiter: string;
  31. postDelimiter: string;
  32. tag: string;
  33. postTag: string;
  34. name: string;
  35. postName: string;
  36. type: string;
  37. postType: string;
  38. description: string;
  39. end: string;
  40. lineEnd: string;
  41. }
  42. export interface Problem {
  43. code:
  44. | 'unhandled'
  45. | 'custom'
  46. | 'source:startline'
  47. | 'spec:tag:prefix'
  48. | 'spec:type:unpaired-curlies'
  49. | 'spec:name:unpaired-brackets'
  50. | 'spec:name:empty-name'
  51. | 'spec:name:invalid-default'
  52. | 'spec:name:empty-default';
  53. message: string;
  54. line: number;
  55. critical: boolean;
  56. }