Repositorio del curso CCOM4030 el semestre B91 del proyecto Artesanías con el Instituto de Cultura

index.d.ts 614B

1234567891011121314151617181920212223242526
  1. declare const detectNewline: {
  2. /**
  3. Detect the dominant newline character of a string.
  4. @returns The detected newline or `undefined` when no newline character is found.
  5. @example
  6. ```
  7. import detectNewline = require('detect-newline');
  8. detectNewline('foo\nbar\nbaz\r\n');
  9. //=> '\n'
  10. ```
  11. */
  12. (string: string): '\r\n' | '\n' | undefined;
  13. /**
  14. Detect the dominant newline character of a string.
  15. @returns The detected newline or `\n` when no newline character is found or the input is not a string.
  16. */
  17. graceful(string: string): '\r\n' | '\n';
  18. graceful(string?: unknown): '\n';
  19. };
  20. export = detectNewline;