BettererFileResolver.resolve()
API > @betterer/betterer > BettererFileResolver > resolve
Resolve a file path relative to the baseDirectory
.
Signature
resolve(...pathSegments: Array<string>): string;
Parameters
Parameter | Type | Description |
---|---|---|
pathSegments | Array<string> | String path segments to resolve. Works the same was as 'path.resolve()' but with baseDirectory as the first argument. |
Returns
string
The resolved path.