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.

standalone.d.ts 1.2KB

123456789101112131415161718192021222324252627
  1. import { CursorOptions, CursorResult, Options, Plugin } from './';
  2. /**
  3. * formatWithCursor both formats the code, and translates a cursor position from unformatted code to formatted code.
  4. * This is useful for editor integrations, to prevent the cursor from moving when code is formatted
  5. *
  6. * The cursorOffset option should be provided, to specify where the cursor is. This option cannot be used with rangeStart and rangeEnd.
  7. *
  8. * ```js
  9. * prettier.formatWithCursor(" 1", { cursorOffset: 2, parser: "babel" });
  10. * ```
  11. * `-> { formatted: '1;\n', cursorOffset: 1 }`
  12. */
  13. export function formatWithCursor(source: string, options: CursorOptions): CursorResult;
  14. /**
  15. * `format` is used to format text using Prettier. [Options](https://prettier.io/docs/en/options.html) may be provided to override the defaults.
  16. */
  17. export function format(source: string, options?: Options): string;
  18. /**
  19. * `check` checks to see if the file has been formatted with Prettier given those options and returns a `Boolean`.
  20. * This is similar to the `--list-different` parameter in the CLI and is useful for running Prettier in CI scenarios.
  21. */
  22. export function check(source: string, options?: Options): boolean;
  23. export as namespace prettier;