From 3ce4f6e485ac07c27e11def153cf2e3b656d5ab2 Mon Sep 17 00:00:00 2001 From: Kant Date: Fri, 20 Oct 2023 14:31:05 +0200 Subject: [PATCH] refactor: add missing types for the wallet-api CustomLogger --- .changeset/grumpy-jeans-rule.md | 5 +++++ .../src/wallet-api/CustomLogger/client.ts | 11 ++++++----- 2 files changed, 11 insertions(+), 5 deletions(-) create mode 100644 .changeset/grumpy-jeans-rule.md diff --git a/.changeset/grumpy-jeans-rule.md b/.changeset/grumpy-jeans-rule.md new file mode 100644 index 000000000000..3704b0cd341a --- /dev/null +++ b/.changeset/grumpy-jeans-rule.md @@ -0,0 +1,5 @@ +--- +"@ledgerhq/live-common": patch +--- + +refactor: add missing types for the wallet-api CustomLogger diff --git a/libs/ledger-live-common/src/wallet-api/CustomLogger/client.ts b/libs/ledger-live-common/src/wallet-api/CustomLogger/client.ts index 6476f8f9089d..810244a8f002 100644 --- a/libs/ledger-live-common/src/wallet-api/CustomLogger/client.ts +++ b/libs/ledger-live-common/src/wallet-api/CustomLogger/client.ts @@ -1,23 +1,24 @@ import { CustomModule } from "@ledgerhq/wallet-api-client"; +import { LoggerParams, LoggerResponse } from "./types"; export class CustomLogger extends CustomModule { debug(message: string) { - return this.request("custom.logger.debug", { message }); + return this.request("custom.logger.debug", { message }); } error(message: string) { - return this.request("custom.logger.error", { message }); + return this.request("custom.logger.error", { message }); } info(message: string) { - return this.request("custom.logger.info", { message }); + return this.request("custom.logger.info", { message }); } log(message: string) { - return this.request("custom.logger.log", { message }); + return this.request("custom.logger.log", { message }); } warn(message: string) { - return this.request("custom.logger.warn", { message }); + return this.request("custom.logger.warn", { message }); } }