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.6KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. // TypeScript Version: 3.0
  2. import * as Unist from 'unist'
  3. declare namespace vfileMessage {
  4. /**
  5. * Create a virtual message.
  6. */
  7. interface VFileMessage extends Error {
  8. /**
  9. * Constructor of a message for `reason` at `position` from `origin`.
  10. * When an error is passed in as `reason`, copies the `stack`.
  11. *
  12. * @param reason Reason for message (`string` or `Error`). Uses the stack and message of the error if given.
  13. * @param position Place at which the message occurred in a file (`Node`, `Position`, or `Point`, optional).
  14. * @param origin Place in code the message originates from (`string`, optional).
  15. */
  16. (
  17. reason: string | Error,
  18. position?: Unist.Node | Unist.Position | Unist.Point,
  19. origin?: string
  20. ): VFileMessage
  21. /**
  22. * Constructor of a message for `reason` at `position` from `origin`.
  23. * When an error is passed in as `reason`, copies the `stack`.
  24. *
  25. * @param reason Reason for message (`string` or `Error`). Uses the stack and message of the error if given.
  26. * @param position Place at which the message occurred in a file (`Node`, `Position`, or `Point`, optional).
  27. * @param origin Place in code the message originates from (`string`, optional).
  28. */
  29. new (
  30. reason: string | Error,
  31. position?: Unist.Node | Unist.Position | Unist.Point,
  32. origin?: string
  33. ): VFileMessage
  34. /**
  35. * Category of message.
  36. */
  37. ruleId: string | null
  38. /**
  39. * Reason for message.
  40. */
  41. reason: string
  42. /**
  43. * Starting line of error.
  44. */
  45. line: number | null
  46. /**
  47. * Starting column of error.
  48. */
  49. column: number | null
  50. /**
  51. * Full range information, when available.
  52. * Has start and end properties, both set to an object with line and column, set to number?.
  53. */
  54. location: Unist.Position
  55. /**
  56. * Namespace of warning.
  57. */
  58. source: string | null
  59. /**
  60. * If true, marks associated file as no longer processable.
  61. */
  62. fatal?: boolean | null
  63. /**
  64. * You may add a file property with a path of a file (used throughout the VFile ecosystem).
  65. */
  66. file?: string
  67. /**
  68. * You may add a note property with a long form description of the message (supported by vfile-reporter).
  69. */
  70. note?: string
  71. /**
  72. * You may add a url property with a link to documentation for the message.
  73. */
  74. url?: string
  75. /**
  76. * It’s OK to store custom data directly on the VMessage, some of those are handled by utilities.
  77. */
  78. [key: string]: unknown
  79. }
  80. }
  81. declare const vfileMessage: vfileMessage.VFileMessage
  82. export = vfileMessage