mirror of
https://github.com/vrtmrz/obsidian-livesync.git
synced 2026-08-29 06:47:06 +00:00
Reduce Community lint type-safety warnings
This commit is contained in:
Vendored
+21
@@ -0,0 +1,21 @@
|
||||
declare module "pouchdb-merge" {
|
||||
export interface RevisionTreeNode {
|
||||
pos: number;
|
||||
ids: [revision: string, metadata: Record<string, unknown>, branches: RevisionTreeNode["ids"][]];
|
||||
}
|
||||
|
||||
export function findPathToLeaf(revisions: RevisionTreeNode[], targetRevision: string): string[];
|
||||
}
|
||||
|
||||
declare module "pouchdb-utils" {
|
||||
export function adapterFun<TThis, TArguments extends unknown[], TResult>(
|
||||
name: string,
|
||||
callback: (this: TThis, ...args: [...TArguments, callback: (error?: Error, result?: TResult) => void]) => void
|
||||
): (this: TThis, ...args: TArguments) => Promise<TResult>;
|
||||
}
|
||||
|
||||
declare module "pouchdb-errors" {
|
||||
export const MISSING_DOC: unknown;
|
||||
export const UNKNOWN_ERROR: unknown;
|
||||
export function createError(error: unknown, reason?: string): Error;
|
||||
}
|
||||
Reference in New Issue
Block a user