mirror of
https://github.com/empayre/fleet.git
synced 2024-11-07 01:15:22 +00:00
0b9d20329b
* chnage webpack to resolve typescript modules. convert TextCell to TS * change headercell and statuscell to ts * ignore casesensitve error, seems a bit buggy * ignore camelcase error, we already use snakecase many places * updated LinkCell and modules it depends on to typescript * fix up some warnings from changes * fix more types in textcell and hosttableconfig * use alias imports * add require button state interfcae
11 lines
403 B
TypeScript
11 lines
403 B
TypeScript
// Encapsulate the URL Prefix so that this is the only module that
|
|
// needs to access the global. All other modules should use this one.
|
|
|
|
// extending window interface to include urlPrefix.
|
|
// https://stackoverflow.com/questions/12709074/how-do-you-explicitly-set-a-new-property-on-window-in-typescript
|
|
declare global{
|
|
interface Window { urlPrefix: string}
|
|
}
|
|
|
|
export default window.urlPrefix || '';
|