stash/ui/v2.5/src/globals.d.ts
kermieisinthehouse 8d94392cfb
Fix Vite issues (#2038)
* Fix environment vars in Vite
* Add types, remove process.env override
* Temporarily Remove Statigz / gzip
* Update ui/v2.5/src/core/createClient.ts

Co-authored-by: peolic <66393006+peolic@users.noreply.github.com>

* Update ui/v2.5/src/serviceWorker.ts

Co-authored-by: peolic <66393006+peolic@users.noreply.github.com>

* Ignore case rules in types
* Add windows js workaround

Co-authored-by: WithoutPants <53250216+WithoutPants@users.noreply.github.com>
2021-11-18 19:38:19 +11:00

23 lines
832 B
TypeScript

// eslint-disable-next-line no-var
declare var STASH_BASE_URL: string;
declare module "*.md";
declare module "string.prototype.replaceall";
declare module "mousetrap-pause";
declare module "hamming-distance";
declare module "@formatjs/intl-pluralrules/locale-data/en";
declare module "@formatjs/intl-numberformat/locale-data/en";
declare module "@formatjs/intl-numberformat/locale-data/en-GB";
/* eslint-disable @typescript-eslint/naming-convention */
interface ImportMetaEnv extends Readonly<Record<string, string>> {
readonly VITE_APP_GITHASH?: string;
readonly VITE_APP_STASH_VERSION?: string;
readonly VITE_APP_DATE?: string;
readonly VITE_APP_PLATFORM_PORT?: string;
readonly VITE_APP_HTTPS?: string;
}
interface ImportMeta {
readonly env: ImportMetaEnv;
}
/* eslint-enable @typescript-eslint/no-unused-vars */