Skip to content

feat: compile entrypoint file with typescript#577

Merged
r4mmer merged 5 commits intodevfrom
feat/lib-typing-declaration
Sep 28, 2023
Merged

feat: compile entrypoint file with typescript#577
r4mmer merged 5 commits intodevfrom
feat/lib-typing-declaration

Conversation

@r4mmer
Copy link
Member

@r4mmer r4mmer commented Sep 25, 2023

Acceptance Criteria

  • Convert index to typescript so we can have consistent typing of the wallet-lib

Security Checklist

  • Make sure you do not include new dependencies in the project unless strictly necessary and do not include dev-dependencies as production ones. More dependencies increase the possibility of one of them being hijacked and affecting us.

@r4mmer r4mmer self-assigned this Sep 25, 2023
@r4mmer r4mmer changed the base branch from master to dev September 25, 2023 17:08
@r4mmer r4mmer force-pushed the feat/lib-typing-declaration branch from 549802e to 7625343 Compare September 25, 2023 17:09
@codecov
Copy link

codecov bot commented Sep 25, 2023

Codecov Report

All modified lines are covered by tests ✅

Comparison is base (b9fa39e) 78.28% compared to head (fb19baf) 78.28%.

Additional details and impacted files
@@           Coverage Diff           @@
##              dev     #577   +/-   ##
=======================================
  Coverage   78.28%   78.28%           
=======================================
  Files          67       67           
  Lines        5254     5254           
  Branches     1108     1108           
=======================================
  Hits         4113     4113           
  Misses       1126     1126           
  Partials       15       15           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

src/index.ts Outdated
import dateFormatter from './utils/date';
import websocket from './websocket';
import * as errors from './errors';
import * as ErrorMessages from './errorMessages';
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could just import the ErrorMessages enum but the wallets use the hathorLib.ErrorMessages.ErrorMessages... so I'll keep this "unnecessary encapsulation" so we don't have to refactor the wallets

@r4mmer r4mmer merged commit 29ca737 into dev Sep 28, 2023
@alexruzenhack alexruzenhack mentioned this pull request Nov 9, 2023
1 task
@r4mmer r4mmer deleted the feat/lib-typing-declaration branch March 21, 2024 18:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants