Skip to content

Commit

Permalink
update d.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
silverwind committed Sep 22, 2023
1 parent c7323a9 commit 095d9f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
Detect the dominant newline character of a string.
@returns The detected newline or `undefined` when no newline character is found.
@returns The detected newline or `undefined` when no newline character is found or `\n` when no dominant newline is present.
@example
```
Expand All @@ -16,7 +16,7 @@ export function detectNewline(string: string): '\r\n' | '\n' | undefined;
/**
Detect the dominant newline character of a string.
@returns The detected newline or `\n` when no newline character is found or the input is not a string.
@returns The detected newline or `\n` when no newline character is found, no dominant newline is present, or the input is not a string.
@example
```
Expand Down

0 comments on commit 095d9f1

Please sign in to comment.