fix: rename to avoid conflict with eponymous TypeScript type

This commit is contained in:
fryorcraken.eth 2022-09-11 10:02:12 +10:00
parent 056aed59fb
commit bdf1c9b7e3
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4
1 changed files with 5 additions and 2 deletions

View File

@ -21,7 +21,7 @@ import {
import { HistoryRPC, PageDirection } from "./history_rpc"; import { HistoryRPC, PageDirection } from "./history_rpc";
import Error = HistoryResponse.HistoryError; import HistoryError = HistoryResponse.HistoryError;
const log = debug("waku:store"); const log = debug("waku:store");
@ -225,7 +225,10 @@ export class WakuStore {
const response = reply.response as protoV2Beta4.HistoryResponse; 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; throw "History response contains an Error: " + response.error;
} }