The base URL to be used for generating the image path URL.
The artifact type to be used for generating the image path URL. It can be 'pages' | 'resources' | ''. Defaults to an empty string ('').
The pathname to be appended to the base URL and artifact.
The filename to be appended to the base URL, artifact, and pathname.
A Result
object with either a string representing the image path URL if all inputs are
valid strings, or an Error
object if any of the inputs are not valid strings.
Generated using TypeDoc v0.24.7
Generates an image path URL by concatenating the base URL, artifact, pathname, and filename.
Example
Example
Handle an invalid input string: