Skip to main content

Type Alias: WiremockFileSource

type WiremockFileSource =
| WiremockPath
| {
file: WiremockPath;
}
| {
file: string;
package: string;
}
| {
file: string;
module: WiremockPath;
};

Defined in: src/sources.ts:16

A path or file: URL, { file }, a file of an installed package { package, file }, or one next to a module { module, file }.

Union Members​

WiremockPath


Type Literal​

{
file: WiremockPath;
}
NameTypeDescriptionDefined in
fileWiremockPathA path or file: URL.src/sources.ts:20

Type Literal​

{
file: string;
package: string;
}
NameTypeDescriptionDefined in
filestringA path inside the package, e.g. "mappings/ping.json".src/sources.ts:26
packagestringAn installed npm package, found the way require() would from the working directory.src/sources.ts:24

Type Literal​

{
file: string;
module: WiremockPath;
}
NameTypeDescriptionDefined in
filestringA path relative to the module's directory.src/sources.ts:32
moduleWiremockPathimport.meta.url (ES modules) or __dirname (CommonJS) – or any file or directory.src/sources.ts:30

See​

File sources