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.

index.d.ts 2.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. // Type definitions for non-npm package Unist 2.0
  2. // Project: https://github.com/syntax-tree/unist
  3. // Definitions by: bizen241 <https://github.com/bizen241>
  4. // Jun Lu <https://github.com/lujun2>
  5. // Hernan Rajchert <https://github.com/hrajchert>
  6. // Titus Wormer <https://github.com/wooorm>
  7. // Junyoung Choi <https://github.com/rokt33r>
  8. // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
  9. // TypeScript Version: 3.0
  10. /**
  11. * Syntactic units in unist syntax trees are called nodes.
  12. */
  13. export interface Node {
  14. /**
  15. * The variant of a node.
  16. */
  17. type: string;
  18. /**
  19. * Information from the ecosystem.
  20. */
  21. data?: Data | undefined;
  22. /**
  23. * Location of a node in a source document.
  24. * Must not be present if a node is generated.
  25. */
  26. position?: Position | undefined;
  27. [key: string]: unknown;
  28. }
  29. /**
  30. * Information associated by the ecosystem with the node.
  31. * Space is guaranteed to never be specified by unist or specifications
  32. * implementing unist.
  33. */
  34. export interface Data {
  35. [key: string]: unknown;
  36. }
  37. /**
  38. * Location of a node in a source file.
  39. */
  40. export interface Position {
  41. /**
  42. * Place of the first character of the parsed source region.
  43. */
  44. start: Point;
  45. /**
  46. * Place of the first character after the parsed source region.
  47. */
  48. end: Point;
  49. /**
  50. * Start column at each index (plus start line) in the source region,
  51. * for elements that span multiple lines.
  52. */
  53. indent?: number[] | undefined;
  54. }
  55. /**
  56. * One place in a source file.
  57. */
  58. export interface Point {
  59. /**
  60. * Line in a source file (1-indexed integer).
  61. */
  62. line: number;
  63. /**
  64. * Column in a source file (1-indexed integer).
  65. */
  66. column: number;
  67. /**
  68. * Character in a source file (0-indexed integer).
  69. */
  70. offset?: number | undefined;
  71. }
  72. /**
  73. * Nodes containing other nodes.
  74. */
  75. export interface Parent extends Node {
  76. /**
  77. * List representing the children of a node.
  78. */
  79. children: Node[];
  80. }
  81. /**
  82. * Nodes containing a value.
  83. */
  84. export interface Literal extends Node {
  85. value: unknown;
  86. }