fix: use Typescript for files in entry-asar (#83)

This commit is contained in:
Erik Moura
2023-11-02 19:10:17 -03:00
committed by GitHub
parent 52fa9a2a78
commit 1948f1caa9
9 changed files with 53 additions and 12 deletions

19
entry-asar/ambient.d.ts vendored Normal file
View File

@@ -0,0 +1,19 @@
declare namespace NodeJS {
interface Process extends EventEmitter {
// This is an undocumented private API. It exists.
_archPath: string;
}
}
declare module 'electron' {
const app: Electron.App;
namespace Electron {
interface App {
getAppPath: () => string;
setAppPath: (p: string) => void;
}
}
export { app };
}