Memperbaiki tipe data respon daftar perangkat
This commit is contained in:
1 parent
0617c1eb83
commit
6fe02acd86
3 files changed
+7
-9
No files matched your search
+1
-1
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "tauri-plugin-bluclas"
|
||||
version = "0.1.0"
|
||||
version = "0.1.8"
|
||||
authors = [ "Rizky Denianto" ]
|
||||
description = ""
|
||||
edition = "2024"
|
||||
|
||||
+5
-7
@@ -9,12 +9,10 @@ export type SBlueclasResponDaftarPerangkat = {
|
||||
data: SDaftarPerangkatBlueclasResponDaftarPerangkat[];
|
||||
};
|
||||
|
||||
export async function daftarPerangkat(): Promise<
|
||||
SBlueclasResponDaftarPerangkat[]
|
||||
> {
|
||||
return await invoke<SBlueclasResponDaftarPerangkat[]>(
|
||||
export async function daftarPerangkat(): Promise<SBlueclasResponDaftarPerangkat> {
|
||||
return await invoke<SBlueclasResponDaftarPerangkat>(
|
||||
"plugin:bluclas|daftar_perangkat",
|
||||
).then((res: SBlueclasResponDaftarPerangkat[]) => res);
|
||||
).then((res: SBlueclasResponDaftarPerangkat) => res);
|
||||
}
|
||||
|
||||
export type SBlueclasMuatanKirim = {
|
||||
@@ -22,10 +20,10 @@ export type SBlueclasMuatanKirim = {
|
||||
data: number[];
|
||||
};
|
||||
|
||||
export async function kirim(value: SBlueclasMuatanKirim): Promise<null> {
|
||||
export async function kirim(muatan: SBlueclasMuatanKirim): Promise<null> {
|
||||
return await invoke<null>("plugin:bluclas|kirim", {
|
||||
payload: {
|
||||
value,
|
||||
value: muatan,
|
||||
},
|
||||
});
|
||||
}
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@segubi/tauri-plugin-bluclas-api",
|
||||
"version": "0.1.7",
|
||||
"version": "0.1.8",
|
||||
"author": "Rizky Denianto",
|
||||
"description": "",
|
||||
"type": "module",
|
||||
|
||||
Reference in new issue
Block a user