File tree Expand file tree Collapse file tree 3 files changed +10
-3
lines changed
Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " tauri.js " : patch
3+ " tauri " : minor
4+ ---
5+
6+ Fixed missing 'App' variant & string promise instead of void promise.
Original file line number Diff line number Diff line change @@ -55,8 +55,8 @@ async function getTauriVersion(): Promise<string> {
5555 * @param [exitCode] defaults to 0.
5656 * @returns {Promise<void> } Application is closing, nothing is returned
5757 */
58- async function exit ( exitCode : Number = 0 ) : Promise < void > {
59- return invokeTauriCommand < string > ( {
58+ async function exit ( exitCode : number = 0 ) : Promise < void > {
59+ return invokeTauriCommand ( {
6060 __tauriModule : 'App' ,
6161 mainThread : true ,
6262 message : {
@@ -72,7 +72,7 @@ async function exit(exitCode: Number = 0): Promise<void> {
7272 * @returns {Promise<void> } Application is restarting, nothing is returned
7373 */
7474async function relaunch ( ) : Promise < void > {
75- return invokeTauriCommand < string > ( {
75+ return invokeTauriCommand ( {
7676 __tauriModule : 'App' ,
7777 mainThread : true ,
7878 message : {
Original file line number Diff line number Diff line change 55import { invoke } from '../tauri'
66
77export type TauriModule =
8+ | 'App'
89 | 'Fs'
910 | 'Window'
1011 | 'Shell'
You can’t perform that action at this time.
0 commit comments