Initial scaffold for Aether Native V3 Electron Launcher
This commit is contained in:
20
src/shared/types.ts
Normal file
20
src/shared/types.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
export interface SeedConfig {
|
||||
event_device_id: string;
|
||||
primary_api_base_url: string;
|
||||
backup_api_base_url: string | null;
|
||||
onsite_api_base_url: string | null;
|
||||
aether_api_key: string;
|
||||
}
|
||||
|
||||
export interface AetherNativeBridge {
|
||||
getSeedConfig: () => Promise<SeedConfig | null>;
|
||||
getDeviceConfig: () => Promise<any>;
|
||||
getJWT: () => Promise<string | null>;
|
||||
log: (message: string) => void;
|
||||
}
|
||||
|
||||
declare global {
|
||||
interface Window {
|
||||
aetherNative: AetherNativeBridge;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user