add better typing to Electron.tsx

This commit is contained in:
JP Sugarbroad
2022-04-18 17:47:33 -07:00
parent 5490d8c837
commit c6327ee682
3 changed files with 55 additions and 25 deletions

View File

@@ -1,8 +1,13 @@
// Defined by webpack on startup or compilation
declare let __COMMIT_HASH__: string;
declare const __COMMIT_HASH__: string;
// When using file-loader, we'll get a path to the resource
declare module "*.png" {
const value: string;
export default value;
}
// Achievements communicated back to Electron shell for Steam.
declare interface Document {
achievements: string[];
}