Skip to content

Add declaration files for TypeScript consumers#116

Merged
danfinlay merged 2 commits intoMetaMask:developfrom
whymarrh:d-ts-files
Jun 13, 2019
Merged

Add declaration files for TypeScript consumers#116
danfinlay merged 2 commits intoMetaMask:developfrom
whymarrh:d-ts-files

Conversation

@whymarrh
Copy link
Copy Markdown
Contributor

This PR updates the TypeScript config to produce type declaration files into the dist folder, allowing TypeScript consumers to properly get type information. I've exported BN from TokenBalancesController.ts as it's used in the TokenBalancesState, which itself is public.

@codecov-io
Copy link
Copy Markdown

codecov-io commented Jun 13, 2019

Codecov Report

Merging #116 into develop will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff           @@
##           develop   #116   +/-   ##
======================================
  Coverage      100%   100%           
======================================
  Files           21     21           
  Lines         1429   1430    +1     
  Branches       193    193           
======================================
+ Hits          1429   1430    +1
Impacted Files Coverage Δ
src/assets/TokenBalancesController.ts 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e78bd6d...fb0d109. Read the comment docs.

@danfinlay danfinlay merged commit 58a8235 into MetaMask:develop Jun 13, 2019
@whymarrh whymarrh deleted the d-ts-files branch June 13, 2019 19:01
estebanmino added a commit that referenced this pull request Jun 14, 2019
* Bugfix: token rates (#115)

* Add declaration files for TypeScript consumers (#116)

* tsc: Add declaration files to dist folder

* Export BN type used for TokenBalancesState

* 1.4.1 (#117)
MajorLift pushed a commit that referenced this pull request Oct 11, 2023
* tsc: Add declaration files to dist folder

* Export BN type used for TokenBalancesState
MajorLift pushed a commit that referenced this pull request Oct 11, 2023
* tsc: Add declaration files to dist folder

* Export BN type used for TokenBalancesState
Mrtenz pushed a commit that referenced this pull request Oct 16, 2025
* Added getAccounts suppressUnauthorized param

* Fixed linting

* Update src/wallet.ts

Co-authored-by: Shane <jonas.shane@gmail.com>

* Added unauthorized error when account is provided but is not returned from getAccounts

* Added tests for unauthorized

* Update test/wallet.test.ts

Co-authored-by: Elliot Winkler <elliot.winkler@gmail.com>

* Update test/wallet.test.ts

Co-authored-by: Elliot Winkler <elliot.winkler@gmail.com>

* Update test/wallet.test.ts

Co-authored-by: Elliot Winkler <elliot.winkler@gmail.com>

* Update test/wallet.test.ts

Co-authored-by: Elliot Winkler <elliot.winkler@gmail.com>

* Fixed linting

* Fixed signTransaction test

* Changed param to object

Co-authored-by: Erik Marks <25517051+rekmarks@users.noreply.github.com>
Co-authored-by: Elliot Winkler <elliot.winkler@gmail.com>
Mrtenz pushed a commit that referenced this pull request Oct 16, 2025
The `suppressUnauthorized` option has been removed from the type
signature of the `getAccounts` parameter accepted by the `wallet`
middleware.

This option was added in #116 to fix an extension bug, but it was never
used in practice. The linked extension change used the wrong parameter
name (`suppressUnauthorizedError`), so this was always unset. We didn't
notice because it also wasn't needed to fix the bug; the
`resemblesAddress` condition added in that same PR was sufficient.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants