Skip to content

Commit

Permalink
Mises à jour
Browse files Browse the repository at this point in the history
  • Loading branch information
julienmalard committed Oct 28, 2024
1 parent fdfa530 commit 00025c4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
8 changes: 5 additions & 3 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
declare module "@orbitdb/core" {
import EventEmitter from "events";
import type { HeliaLibp2p } from "helia";
import type { PeerId } from "@libp2p/interface";

export function Database(args: {
ipfs: HeliaLibp2p;
Expand Down Expand Up @@ -62,10 +63,11 @@ declare module "@orbitdb/core" {
};
export function createOrbitDB(args: {
ipfs: HeliaLibp2p;
directory: string;
id?: string;
id?: PeerId;
identity?: Identity;
identities?: typeof Identities;
directory?: string;
}): Promise<OrbitDB>;

export function useAccessController(accessController: { type: string }): void;
export function isValidAddress(address: unknown): boolean;

Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@constl/orbit-db-types",
"private": false,
"version": "2.0.2",
"version": "2.0.3",
"description": "Unofficial typings for orbit-db",
"types": "index.d.ts",
"type": "module",
Expand All @@ -24,6 +24,7 @@
"publishNPM": "pnpm publish --access public"
},
"devDependencies": {
"@libp2p/interface": "^2.1.3",
"@orbitdb/core": "^2.3.0",
"@types/elliptic": "^6.4.18",
"@types/events": "^3.0.3",
Expand Down
3 changes: 3 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 00025c4

Please sign in to comment.