wj-elements
Version:
WebJET Elements is a modern set of user interface tools harnessing the power of web components designed to simplify web application development.
15 lines (14 loc) • 751 B
TypeScript
/**
* Sets the base path for the application.
* @param {string} path The base path to be set.
* @returns {void} This function does not return anything.
*/
export function setBasePath(path: string): void;
/**
* Returns the base path of the application, optionally appending a specified relative path.
* If the base path has not been set, it determines the base path from the first script element
* with a `base-path` attribute or generates it based on the current script location.
* @param {string} [appendedPath] The relative path to append to the base path. Defaults to an empty string.
* @returns {string} The complete base path, with the appended relative path if specified.
*/
export function getBasePath(appendedPath?: string): string;