File tree 3 files changed +10
-3
lines changed
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> {
55
55
* @param [exitCode] defaults to 0.
56
56
* @returns {Promise<void> } Application is closing, nothing is returned
57
57
*/
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 ( {
60
60
__tauriModule : 'App' ,
61
61
mainThread : true ,
62
62
message : {
@@ -72,7 +72,7 @@ async function exit(exitCode: Number = 0): Promise<void> {
72
72
* @returns {Promise<void> } Application is restarting, nothing is returned
73
73
*/
74
74
async function relaunch ( ) : Promise < void > {
75
- return invokeTauriCommand < string > ( {
75
+ return invokeTauriCommand ( {
76
76
__tauriModule : 'App' ,
77
77
mainThread : true ,
78
78
message : {
Original file line number Diff line number Diff line change 5
5
import { invoke } from '../tauri'
6
6
7
7
export type TauriModule =
8
+ | 'App'
8
9
| 'Fs'
9
10
| 'Window'
10
11
| 'Shell'
You can’t perform that action at this time.
0 commit comments