You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Returns a string identifying the operating system platform.
44
-
* The value is set at compile time. Possible values are `'aix'`, `'darwin'`, `'freebsd'`, `'linux'`, `'openbsd'`, `'sunos'`, and `'win32'`.
39
+
* The value is set at compile time. Possible values are `'linux'`, `'darwin'`, `'ios'`, `'freebsd'`, `'dragonfly'`, `'netbsd'`, `'openbsd'`, `'solaris'`, `'android'`, `'win32'`
45
40
*/
46
-
asyncfunctionplatform(): Promise<Platform>{
47
-
returninvokeTauriCommand<Platform>({
41
+
asyncfunctionplatform(): Promise<
42
+
LiteralUnion<
43
+
|'linux'
44
+
|'darwin'
45
+
|'ios'
46
+
|'freebsd'
47
+
|'dragonfly'
48
+
|'netbsd'
49
+
|'openbsd'
50
+
|'solaris'
51
+
|'android'
52
+
|'win32',
53
+
string
54
+
>
55
+
>{
56
+
returninvokeTauriCommand<string>({
48
57
__tauriModule: 'Os',
49
58
message: {
50
59
cmd: 'platform'
@@ -64,40 +73,40 @@ async function version(): Promise<string> {
* Returns the operating system CPU architecture for which the tauri app was compiled. Possible values are `'x86'`, `'x86_64'`, `'arm'`, `'aarch64'`, `'mips'`, `'mips64'`, `'powerpc'`, `'powerpc64'`, `'riscv64'`, `'s390x'`, `'sparc64'`
98
92
*/
99
-
asyncfunctionarch(): Promise<Arch>{
100
-
returninvokeTauriCommand<Arch>({
93
+
asyncfunctionarch(): Promise<
94
+
LiteralUnion<
95
+
|'x86'
96
+
|'x86_64'
97
+
|'arm'
98
+
|'aarch64'
99
+
|'mips'
100
+
|'mips64'
101
+
|'powerpc'
102
+
|'powerpc64'
103
+
|'riscv64'
104
+
|'s390x'
105
+
|'sparc64',
106
+
string
107
+
>
108
+
>{
109
+
returninvokeTauriCommand<string>({
101
110
__tauriModule: 'Os',
102
111
message: {
103
112
cmd: 'arch'
@@ -118,4 +127,3 @@ async function tempdir(): Promise<string> {
0 commit comments