constsingleInstance:object
Defined in: single-instance.ts:27
isPrimary: () =>
Promise<boolean> =isPrimaryInstance
Whether this process is the primary (first-launched) instance.
Promise<boolean>
onSecondInstance: (
handler) =>Promise<() =>Promise<void>>
Listens for a second instance attempting to launch. The handler runs on the primary instance with the second instance's argv/cwd (argv is currently always empty).
(event) => void
Promise<() => Promise<void>>
isPrimaryInstance():
Promise<boolean>
Defined in: single-instance.ts:9
Whether this process is the primary (first-launched) instance.
Promise<boolean>
onSecondInstance(
handler):Promise<() =>Promise<void>>
Defined in: single-instance.ts:18
Listens for a second instance attempting to launch. The handler runs on the primary instance with the second instance's argv/cwd (argv is currently always empty).
(event) => void
Promise<() => Promise<void>>