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
Type Literal
{
file: WiremockPath;
}
| Name | Type | Description | Defined in |
|---|---|---|---|
file | WiremockPath | A path or file: URL. | src/sources.ts:20 |
Type Literal
{
file: string;
package: string;
}
| Name | Type | Description | Defined in |
|---|---|---|---|
file | string | A path inside the package, e.g. "mappings/ping.json". | src/sources.ts:26 |
package | string | An installed npm package, found the way require() would from the working directory. | src/sources.ts:24 |
Type Literal
{
file: string;
module: WiremockPath;
}
| Name | Type | Description | Defined in |
|---|---|---|---|
file | string | A path relative to the module's directory. | src/sources.ts:32 |
module | WiremockPath | import.meta.url (ES modules) or __dirname (CommonJS) – or any file or directory. | src/sources.ts:30 |