From bdf1c9b7e371764b15540d82b6d76fad4eb2dd6f Mon Sep 17 00:00:00 2001 From: "fryorcraken.eth" Date: Sun, 11 Sep 2022 10:02:12 +1000 Subject: [PATCH] fix: rename to avoid conflict with eponymous TypeScript type --- src/lib/waku_store/index.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/lib/waku_store/index.ts b/src/lib/waku_store/index.ts index 24fea200c6..0304496cbb 100644 --- a/src/lib/waku_store/index.ts +++ b/src/lib/waku_store/index.ts @@ -21,7 +21,7 @@ import { import { HistoryRPC, PageDirection } from "./history_rpc"; -import Error = HistoryResponse.HistoryError; +import HistoryError = HistoryResponse.HistoryError; const log = debug("waku:store"); @@ -225,7 +225,10 @@ export class WakuStore { const response = reply.response as protoV2Beta4.HistoryResponse; - if (response.error && response.error !== Error.ERROR_NONE_UNSPECIFIED) { + if ( + response.error && + response.error !== HistoryError.ERROR_NONE_UNSPECIFIED + ) { throw "History response contains an Error: " + response.error; }