Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes in types definition #1139

Merged
merged 2 commits into from
Nov 13, 2017
Merged

Fixes in types definition #1139

merged 2 commits into from
Nov 13, 2017

Conversation

icaroharry
Copy link
Contributor

Complements #1131 and fixes some issues that broke my code after implementation of type definitons

  • Create default export
  • Change bignumber.js to bn.js
  • Change Provider interface to IProvider and create Provider type, which is a union of all the 3 providers (HttpProvider & IpcProvider & WebsocketProvider)
  • Implement WebsocketProvider interface according to the current version (branch 1.0) of web3-providers-ws

@coveralls
Copy link

coveralls commented Oct 24, 2017

Coverage Status

Coverage remained the same at 85.566% when pulling 9324c51 on icaroharry:typesFixes into edd801b on ethereum:1.0.

@icaroharry
Copy link
Contributor Author

Following this answer, I decided to make the Provider type a union between WebsocketProvider, HttpProvider and IpcProvider

@coveralls
Copy link

coveralls commented Oct 25, 2017

Coverage Status

Coverage remained the same at 85.566% when pulling 0969ad7 on icaroharry:typesFixes into edd801b on ethereum:1.0.

@frozeman frozeman merged commit fdb40ab into web3:1.0 Nov 13, 2017
@frozeman
Copy link
Contributor

Hoping this makes sense, as i didn't test the typescript compiler

nachomazzara pushed a commit to nachomazzara/web3.js that referenced this pull request Jun 4, 2020
* Fixes in types definition

* Fix Provider type: implement 'empty' variables to the other providers interfaces to make a OR between them
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