Skip to content

Commit

Permalink
fixes types in esm projects (#585)
Browse files Browse the repository at this point in the history
* fixes types in esm projects

* remove response error
  • Loading branch information
netbonus authored Nov 7, 2024
1 parent 48b6818 commit 5a27525
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down
2 changes: 1 addition & 1 deletion src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -44,6 +43,7 @@ export const parseLattice1Response = function (r: string): {
const parsed: {
errorMessage: string | null;
data: Buffer | null;
responseCode?: number;
} = {
errorMessage: null,
data: null,
Expand Down

0 comments on commit 5a27525

Please sign in to comment.