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

chore: update types #302

Merged
merged 3 commits into from
Apr 15, 2021
Merged

chore: update types #302

merged 3 commits into from
Apr 15, 2021

Conversation

achingbrain
Copy link
Member

  • Updates deps
  • Changes Blockstore.query return type based on query arg
  • Exports Blockstore type from index.js
  • Moves Config types from ipfs-core-types to ipfs-repo
  • Removes bignumber.js dep in favour of using BigInts
  • Normalises type import style
  • Removes ts-ignores from modules with types

- Updates deps
- Changes Blockstore.query return type based on query arg
- Exports Blockstore type from index.js
- Moves Config types from ipfs-core-types to ipfs-repo
- Removes bignumber.js dep in favour of using `BigInt`s
- Normalises type import style
- Removes ts-ignores from modules with types
src/blockstore.js Outdated Show resolved Hide resolved
src/idstore.js Outdated Show resolved Hide resolved
src/config.js Outdated Show resolved Hide resolved
src/types.d.ts Outdated Show resolved Hide resolved
src/types.d.ts Outdated Show resolved Hide resolved
src/types.d.ts Show resolved Hide resolved
Copy link
Member

@vasco-santos vasco-santos left a comment

Choose a reason for hiding this comment

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

LGTM

getAll (options = {}) { // eslint-disable-line require-await
return configStore.get(undefined, options)
async getAll (options = {}) { // eslint-disable-line require-await
// [email protected] cannot read keys from [email protected] dbs so fall back to
Copy link
Member

Choose a reason for hiding this comment

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

Is there an issue to track this? If not, can you create one?

Copy link
Member Author

@achingbrain achingbrain Apr 15, 2021

Choose a reason for hiding this comment

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

I can do, but it's not something that's ever going to be fixed so the issue will hang around forever.

The level-js 4 -> 5 version bump was because of this breaking change.

Copy link
Member

Choose a reason for hiding this comment

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

ok makes sense, so maybe not worth

@achingbrain achingbrain merged commit 0ec1c0b into master Apr 15, 2021
@achingbrain achingbrain deleted the chore/update-types branch April 15, 2021 17:37
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.

2 participants