Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions OrbitDB.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ declare module 'orbit-db' {
import EventStore from "orbit-db-eventstore";
import DocumentStore from "orbit-db-docstore";
import CounterStore from "orbit-db-counterstore";
import { Keystore } from "orbit-db-keystore";
import {Keystore} from "orbit-db-keystore";
import Cache from "orbit-db-cache";
import { Identity } from "orbit-db-identity-provider";
import * as IPFS from "ipfs";
import {Identity} from "orbit-db-identity-provider";
import {IPFS} from "ipfs-core-types";
import * as elliptic from "elliptic";
import OrbitDBAddress from 'orbit-db'
export class OrbitDB {
Expand All @@ -21,12 +21,12 @@ declare module 'orbit-db' {
stores: any;
directory: string;
keystore: Keystore;

// For OpenTelemetry Plugin
span?: any;

static databaseTypes: string[];


constructor(ipfs: IPFS, directory?: string, options?: {
peerId?: string,
Expand Down
1 change: 1 addition & 0 deletions OrbitDBAccessControllers/AccessControllerInterface.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ declare module "orbit-db-access-controllers/src/access-controller-interface" {

import OrbitDB from 'orbit-db'
import { IdentityProvider } from 'orbit-db-identity-provider'
import { EventEmitter } from 'events'


/**
Expand Down
4 changes: 2 additions & 2 deletions Store.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
declare module "orbit-db-store" {
import IPFS = require("ipfs");
import { IPFS } from "ipfs-core-types";
import { Identity } from "orbit-db-identity-provider";
import { EventEmitter } from 'events';
import * as elliptic from "elliptic";
Expand All @@ -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.

type: string;
/**
* Returns an instance of `elliptic.ec.KeyPair`.
Expand Down
Loading