Memperbaiki tipe data respon cek izin
This commit is contained in:
1 parent
16e8128f5a
commit
2185c6e6fb
4 files changed
+9
-9
No files matched your search
+5
-5
@@ -1,20 +1,20 @@
|
||||
import { invoke } from "@tauri-apps/api/core";
|
||||
import { SBlueclasMuatanKirim, SBlueclasResponDaftarPerangkat } from "./models";
|
||||
|
||||
export async function cek_izin(): Promise<string> {
|
||||
return await invoke<string>("plugin:bluclas|cek_izin").then((r) => r);
|
||||
export async function cekIzin(): Promise<string> {
|
||||
return await invoke<string>("plugin:bluclas|cek_izin").then((res: string) => res);
|
||||
}
|
||||
|
||||
export async function minta_izin(): Promise<null> {
|
||||
export async function mintaIzin(): Promise<null> {
|
||||
return await invoke<null>("plugin:bluclas|minta_izin");
|
||||
}
|
||||
|
||||
export async function daftar_perangkat(): Promise<
|
||||
export async function daftarPerangkat(): Promise<
|
||||
SBlueclasResponDaftarPerangkat[]
|
||||
> {
|
||||
return await invoke<SBlueclasResponDaftarPerangkat[]>(
|
||||
"plugin:bluclas|daftar_perangkat",
|
||||
).then((r) => (r.value ? r.value : null));
|
||||
).then((res: SBlueclasResponDaftarPerangkat[]) => res);
|
||||
}
|
||||
|
||||
export async function kirim(value: SBlueclasMuatanKirim): Promise<null> {
|
||||
|
||||
Reference in new issue
Block a user