Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
julienmalard committed Nov 26, 2024
1 parent c51400d commit c56c771
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,9 @@ declare module "@orbitdb/core" {
}
>;

export type DocumentsDatabase = Awaited<ReturnType<Awaited<ReturnType<typeof Documents>>>>;
export type DocumentsDatabase = Awaited<
ReturnType<Awaited<ReturnType<typeof Documents>>>
>;

export function KeyValue(): (args: CreateDatabaseArgs) => Promise<
BaseDatabase & {
Expand All @@ -101,7 +103,9 @@ declare module "@orbitdb/core" {
}
>;

export type KeyValueDatabase = Awaited<ReturnType<Awaited<ReturnType<typeof KeyValue>>>>;
export type KeyValueDatabase = Awaited<
ReturnType<Awaited<ReturnType<typeof KeyValue>>>
>;

export function Database(args: CreateDatabaseArgs): Promise<BaseDatabase>;

Expand Down Expand Up @@ -148,9 +152,7 @@ declare module "@orbitdb/core" {
peerId: PeerId;
};

export function useAccessController(
accessController: AccessController,
): void;
export function useAccessController(accessController: AccessController): void;

export function parseAddress(
address: OrbitDBAddress | string,
Expand Down Expand Up @@ -225,9 +227,7 @@ declare module "@orbitdb/core" {
}
>;

export function OrbitDBAccessController(args?: {
write?: string[];
}): (args: {
export function OrbitDBAccessController(args?: { write?: string[] }): (args: {
orbitdb: OrbitDB;
identities: IdentitiesType;
address: string;
Expand Down

0 comments on commit c56c771

Please sign in to comment.