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.

description.d.ts 800B

12345678910111213141516171819
  1. import { Line } from '../../primitives';
  2. import { Tokenizer } from './index';
  3. /**
  4. * Walks over provided lines joining description token into a single string.
  5. * */
  6. export declare type Joiner = (lines: Line[]) => string;
  7. /**
  8. * Shortcut for standard Joiners
  9. * compact - strip surrounding whitespace and concat lines using a single string
  10. * preserve - preserves original whitespace and line breaks as is
  11. */
  12. export declare type Spacing = 'compact' | 'preserve' | Joiner;
  13. /**
  14. * Makes no changes to `spec.lines[].tokens` but joins them into `spec.description`
  15. * following given spacing srtategy
  16. * @param {Spacing} spacing tells how to handle the whitespace
  17. */
  18. export default function descriptionTokenizer(spacing?: Spacing): Tokenizer;
  19. export declare function getJoiner(spacing: Spacing): Joiner;