-
-
Notifications
You must be signed in to change notification settings - Fork 13
/
index.d.ts
32 lines (30 loc) · 923 Bytes
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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
}