-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontext-get-source.mts
63 lines (56 loc) · 1.07 KB
/
context-get-source.mts
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/**
* @file Interfaces - GetSourceContext
* @module mlly/interfaces/GetSourceContext
*/
import type {
FileSystem,
GetSourceHandlers,
GetSourceOptions
} from '@flex-development/mlly'
/**
* Source code retrieval context.
*
* @see {@linkcode GetSourceOptions}
*
* @extends {GetSourceOptions}
*/
interface GetSourceContext extends GetSourceOptions {
/**
* Throw [`ERR_UNSUPPORTED_ESM_URL_SCHEME`][err]?
*
* [err]: https://nodejs.org/api/errors.html#err_unsupported_esm_url_scheme
*/
error: boolean
/**
* File system API.
*
* @see {@linkcode FileSystem}
*
* @override
*/
fs: FileSystem
/**
* URL handler map.
*
* @see {@linkcode GetSourceHandlers}
*
* @override
*/
handlers: GetSourceHandlers
/**
* Request options for network based modules.
*
* > 👉 **Note**: Only applicable if {@linkcode network} is
* > enabled.
*
* @override
*/
req: RequestInit
/**
* List of supported URL schemes.
*
* @override
*/
schemes: Set<string>
}
export type { GetSourceContext as default }