electron-util
Version:
Useful utilities for Electron apps and modules
8 lines (6 loc) • 307 B
TypeScript
/**
It works by writing a file to `app.getPath('userData')` if it doesn't exist and checks that.
That means it will return true the first time you add this check to your app.
@returns A `boolean` of whether it's the first time your app is launched.
*/
export declare const isFirstAppLaunch: () => boolean;