Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Sindre Sorhus <[email protected]>
  • Loading branch information
fregante and sindresorhus authored Aug 21, 2024
1 parent 066a6f3 commit ab9e5f4
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
Expand Up @@ -27,7 +27,7 @@ declare const domLoaded: Promise<void> & {
readonly hasLoaded: boolean;

/**
AbortSignal that is aborted when the DOM has already finished loading.
An `AbortSignal` that triggers when the DOM finishes loading or immediately if it has already loaded.
@example
```
Expand All @@ -36,7 +36,7 @@ declare const domLoaded: Promise<void> & {
showLoader({signal: domLoaded.signal});
```
*/
readonly hasLoaded: boolean;
readonly signal: boolean;
};

export default domLoaded;

0 comments on commit ab9e5f4

Please sign in to comment.