UNPKG

@kinvolk/headlamp-plugin

Version:

The needed infrastructure for building Headlamp plugins.

20 lines (19 loc) 588 B
declare global { interface Window { /** * headlampBaseUrl is used to set the base URL for the app. * * When headlamp is compiled if a baseUrl is set, then it adds this variable to the * appropriate base URL from the environment. * * Read only. */ headlampBaseUrl?: string; } } /** * @returns the baseUrl for the app based on window.headlampBaseUrl or import.meta.env.PUBLIC_URL * * This could be either '' meaning /, or something like '/headlamp'. */ export declare function getBaseUrl(): string;