Skip to content

Commit

Permalink
Update types to @orbitdb/[email protected]
Browse files Browse the repository at this point in the history
  • Loading branch information
julienmalard committed Jan 31, 2024
1 parent c34604b commit 86c91b8
Show file tree
Hide file tree
Showing 3 changed files with 5,543 additions and 2,342 deletions.
8 changes: 4 additions & 4 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
declare module "@orbitdb/core" {
import EventEmitter from "events";
import type { IPFS } from "ipfs-core";
import type { Helia } from "helia";

export function Database(args: {
ipfs: IPFS;
ipfs: Helia;
identity?: Identity;
address: string;
name?: string;
Expand Down Expand Up @@ -61,7 +61,7 @@ declare module "@orbitdb/core" {
peerId;
};
export function createOrbitDB(args: {
ipfs: IPFS;
ipfs: Helia;
directory: string;
id?: string;
}): Promise<OrbitDB>;
Expand Down Expand Up @@ -107,7 +107,7 @@ declare module "@orbitdb/core" {
write: string[];
canAppend: (entry: LogEntry) => Promise<boolean>;
}>;
export function Identities(args: {keystore?: KeyStoreType, path?: string, storage?: Storage, ipfs?: IPFS}): Promise<IdentitiesType>;
export function Identities(args: {keystore?: KeyStoreType, path?: string, storage?: Storage, ipfs?: Helia}): Promise<IdentitiesType>;
export class IdentitiesType {
createIdentity;
getIdentity;
Expand Down
12 changes: 7 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@constl/orbit-db-types",
"private": false,
"version": "1.2.9",
"version": "2.0.0",
"description": "Unofficial typings for orbit-db",
"types": "index.d.ts",
"type": "module",
Expand All @@ -24,9 +24,11 @@
"publishNPM": "yarn publish --access public"
},
"devDependencies": {
"@types/elliptic": "^6.4.6",
"@types/events": "^1.2.0",
"ipfs-core": "^0.18.1",
"@orbitdb/core": "^1.0.0"
"@orbitdb/core": "^2.0.1",
"@types/elliptic": "^6.4.18",
"@types/events": "^1.2.0"
},
"dependencies": {
"helia": "^3.0.1"
}
}
Loading

0 comments on commit 86c91b8

Please sign in to comment.