From ea7e2ec31590ebf0f42cdaeab99b4cf8d99623cf Mon Sep 17 00:00:00 2001 From: Mateo Gianolio Date: Wed, 11 Oct 2023 15:49:38 +0200 Subject: [PATCH] fix(ts): fix method return types --- src/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.tsx b/src/index.tsx index be7093c..f6adeb4 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -81,11 +81,11 @@ export class ESPDevice implements ESPDeviceInterface { return EspIdfProvisioning.isSessionEstablished(this.name); } - getProofOfPossession(): string | undefined { + getProofOfPossession(): Promise { return EspIdfProvisioning.getProofOfPossession(this.name); } - scanWifiList(): ESPWifiList[] { + scanWifiList(): Promise { return EspIdfProvisioning.scanWifiList(this.name); }