Memperbaiki tipe data respon daftar perangkat
Penerbitan Plugin / persiapan (pull_request) Successful in 14s
Penerbitan Plugin / penerbitan (pull_request) Successful in 29s

This commit is contained in:
rizky_denianto committed 2026-07-18 01:27:20 +07:00
1 parent 0617c1eb83
commit 6fe02acd86
3 files changed
+7 -9

No files matched your search

+1 -1
View File
@@ -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
View File
@@ -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
View File
@@ -1,6 +1,6 @@
{
"name": "@segubi/tauri-plugin-bluclas-api",
"version": "0.1.7",
"version": "0.1.8",
"author": "Rizky Denianto",
"description": "",
"type": "module",