fleet/frontend/router/url_prefix.ts
Gabe Hernandez 0b9d20329b
add ts to data table components (#364)
* 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
2021-03-03 16:51:39 +00:00

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 || '';