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

Use ipfs-core-types; Updated npm git dependency format; Minor fixes #39

Closed
wants to merge 2 commits into from
Closed

Use ipfs-core-types; Updated npm git dependency format; Minor fixes #39

wants to merge 2 commits into from

Conversation

ple1n
Copy link

@ple1n ple1n commented Mar 20, 2022

Changes include #31

Copy link
Member

@tabcat tabcat left a comment

Choose a reason for hiding this comment

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

thanks for making these changes @planetoryd
will be good to use the official ipfs types

package.json Show resolved Hide resolved
@@ -15,7 +15,7 @@ declare module "orbit-db-store" {
/**
* Contains all entries of this Store
*/
all: any[];
all: any[] | {};
Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Author

Choose a reason for hiding this comment

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

It should be, but the IDE told me it could be {} too, for some reason. uh, right, the implementation should be changed instead

Copy link
Member

Choose a reason for hiding this comment

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

I dont think the code block I linked needs to be changed, and im not sure how it could return an object.

Copy link
Author

Choose a reason for hiding this comment

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

Yes it shouldn't be. If for some reason it returns an object it's the fault of orbit-db not its typing.

@ple1n
Copy link
Author

ple1n commented Mar 25, 2022

Sorry I'm not interested in using orbit-db as a dependency anymore. It seems rewriting that part would be better

@ple1n ple1n closed this Mar 25, 2022
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