diff --git a/package.json b/package.json index 899fd257..933999fc 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,8 @@ "exports": { ".": { "import": "./dist/gridplus-sdk.es.js", - "require": "./dist/gridplus-sdk.umd.js" + "require": "./dist/gridplus-sdk.umd.js", + "types": "./dist/index.d.ts" } }, "files": [ diff --git a/src/util.ts b/src/util.ts index 456f71d5..df02b8cc 100644 --- a/src/util.ts +++ b/src/util.ts @@ -26,7 +26,6 @@ import { isValidBlockExplorerResponse, } from './shared/validators'; import { FirmwareConstants } from './types'; -import { LatticeResponseError } from './shared/errors'; const { COINS, PURPOSES } = BIP_CONSTANTS; let ec: EC | undefined; @@ -44,6 +43,7 @@ export const parseLattice1Response = function (r: string): { const parsed: { errorMessage: string | null; data: Buffer | null; + responseCode?: number; } = { errorMessage: null, data: null,