mirror of
https://github.com/tauri-apps/tauri-plugin-process.git
synced 2026-01-31 00:55:17 +01:00
Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com> Committed via a GitHub action: https://github.com/tauri-apps/plugins-workspace/actions/runs/6590505706 Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
29 lines
701 B
TypeScript
29 lines
701 B
TypeScript
/**
|
|
* Exits immediately with the given `exitCode`.
|
|
* @example
|
|
* ```typescript
|
|
* import { exit } from '@tauri-apps/plugin-process';
|
|
* await exit(1);
|
|
* ```
|
|
*
|
|
* @param code The exit code to use.
|
|
* @returns A promise indicating the success or failure of the operation.
|
|
*
|
|
* @since 2.0.0
|
|
*/
|
|
declare function exit(code?: number): Promise<void>;
|
|
/**
|
|
* Exits the current instance of the app then relaunches it.
|
|
* @example
|
|
* ```typescript
|
|
* import { relaunch } from '@tauri-apps/plugin-process';
|
|
* await relaunch();
|
|
* ```
|
|
*
|
|
* @returns A promise indicating the success or failure of the operation.
|
|
*
|
|
* @since 2.0.0
|
|
*/
|
|
declare function relaunch(): Promise<void>;
|
|
export { exit, relaunch };
|