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.

util.d.ts 1.1KB

123456789101112131415161718192021
  1. import { Block, Tokens, Spec } from './primitives';
  2. export declare function isSpace(source: string): boolean;
  3. export declare function hasCR(source: string): boolean;
  4. export declare function splitCR(source: string): [string, string];
  5. export declare function splitSpace(source: string): [string, string];
  6. export declare function splitLines(source: string): string[];
  7. export declare function seedBlock(block?: Partial<Block>): Block;
  8. export declare function seedSpec(spec?: Partial<Spec>): Spec;
  9. export declare function seedTokens(tokens?: Partial<Tokens>): Tokens;
  10. /**
  11. * Assures Block.tags[].source contains references to the Block.source items,
  12. * using Block.source as a source of truth. This is a counterpart of rewireSpecs
  13. * @param block parsed coments block
  14. */
  15. export declare function rewireSource(block: Block): Block;
  16. /**
  17. * Assures Block.source contains references to the Block.tags[].source items,
  18. * using Block.tags[].source as a source of truth. This is a counterpart of rewireSource
  19. * @param block parsed coments block
  20. */
  21. export declare function rewireSpecs(block: Block): Block;