OneLauncher-Cracked/packages/client/src/index.ts
Pauline 992af34764
🔨 chore: bump deps
Signed-off-by: Pauline <git@ethanlibs.co>
2024-09-08 18:31:19 +02:00

20 lines
726 B
TypeScript

declare global {
// eslint-disable-next-line vars-on-top, no-var -- global patched variable
var isDevelopment: boolean;
// eslint-disable-next-line vars-on-top, no-var -- global patched variable
var onHotReload: (cb: () => void) => void | undefined;
}
if (globalThis.isDevelopment === undefined || globalThis.localStorage === undefined)
throw new Error('please ensure you have patched `globalThis` before importing the client');
declare global {
// global patched function because tauri/webkit does weird promise polyfills
export function confirm(): boolean | Promise<boolean>;
}
export * from './constants';
export * from './hooks';
export * from './library';
export type * from './types';
export * from './utils';