-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor to move main types to
index.d.ts
- Loading branch information
Showing
4 changed files
with
37 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,4 @@ node_modules/ | |
*.log | ||
.DS_Store | ||
yarn.lock | ||
!/index.d.ts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/* eslint-disable @typescript-eslint/ban-types, @typescript-eslint/consistent-type-definitions */ | ||
|
||
export {default} from './lib/index.js' | ||
|
||
/** | ||
* Configuration. | ||
*/ | ||
export interface Options { | ||
/** | ||
* Check relative values relative to this URL | ||
* (optional, example: `'https://example.com/from'`). | ||
*/ | ||
from?: string | null | undefined | ||
/** | ||
* Whether to ignore `localhost` links such as `http://localhost/*`, | ||
* `http://127.0.0.1/*` | ||
* (default: `false`). | ||
*/ | ||
skipLocalhost?: boolean | null | undefined | ||
/** | ||
* Whether to let offline runs pass quietly | ||
* (default: `false`). | ||
*/ | ||
skipOffline?: boolean | null | undefined | ||
/** | ||
* List of patterns for URLs that should be skipped | ||
* (optional); | ||
* each URL will be tested against each pattern and will be ignored if | ||
* `new RegExp(pattern).test(url) === true`. | ||
*/ | ||
skipUrlPatterns?: ReadonlyArray<RegExp | string> | null | undefined | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters