mirror of
https://github.com/vrtmrz/obsidian-livesync.git
synced 2026-10-18 07:12:32 +00:00
add eslint-disabled-line (testing)
This commit is contained in:
Vendored
+1
-1
@@ -50,7 +50,7 @@ export declare class LiveSyncBaseCore<T extends ServiceContext = ServiceContext,
|
|||||||
* @param constructor
|
* @param constructor
|
||||||
* @returns
|
* @returns
|
||||||
*/
|
*/
|
||||||
getModule<T extends AbstractModule>(constructor: new (...args: any[]) => T): T;
|
getModule<T extends AbstractModule>(constructor: new (...args: any[]) => T): T; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
/**
|
/**
|
||||||
* Register a module to the plug-in.
|
* Register a module to the plug-in.
|
||||||
* @param module The module to register.
|
* @param module The module to register.
|
||||||
|
|||||||
+1
-1
@@ -91,7 +91,7 @@ export declare class ConfigSync extends LiveSyncCommands {
|
|||||||
showPluginSyncModal(): void;
|
showPluginSyncModal(): void;
|
||||||
hidePluginSyncModal(): void;
|
hidePluginSyncModal(): void;
|
||||||
onunload(): void;
|
onunload(): void;
|
||||||
addRibbonIcon: (icon: string, title: string, callback: (evt: MouseEvent) => any) => HTMLElement;
|
addRibbonIcon: (icon: string, title: string, callback: (evt: MouseEvent) => any) => HTMLElement; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
onload(): void;
|
onload(): void;
|
||||||
getFileCategory(filePath: string): "CONFIG" | "THEME" | "SNIPPET" | "PLUGIN_MAIN" | "PLUGIN_ETC" | "PLUGIN_DATA" | "";
|
getFileCategory(filePath: string): "CONFIG" | "THEME" | "SNIPPET" | "PLUGIN_MAIN" | "PLUGIN_ETC" | "PLUGIN_DATA" | "";
|
||||||
isTargetPath(filePath: string): boolean;
|
isTargetPath(filePath: string): boolean;
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ export declare class P2PReplicatorPaneView extends SvelteItemView {
|
|||||||
getDisplayText(): string;
|
getDisplayText(): string;
|
||||||
onClose(): Promise<void>;
|
onClose(): Promise<void>;
|
||||||
instantiateComponent(target: HTMLElement): {
|
instantiateComponent(target: HTMLElement): {
|
||||||
$on?(type: string, callback: (e: any) => void): () => void;
|
$on?(type: string, callback: (e: any) => void): () => void; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
$set?(props: Partial<Record<string, any>>): void;
|
$set?(props: Partial<Record<string, any>>): void; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
} & Record<string, any>;
|
} & Record<string, any>; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ export declare class P2PServerStatusPaneView extends SvelteItemView {
|
|||||||
getViewType(): string;
|
getViewType(): string;
|
||||||
getDisplayText(): string;
|
getDisplayText(): string;
|
||||||
instantiateComponent(target: HTMLElement): {
|
instantiateComponent(target: HTMLElement): {
|
||||||
$on?(type: string, callback: (e: any) => void): () => void;
|
$on?(type: string, callback: (e: any) => void): () => void; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
$set?(props: Partial<Record<string, any>>): void;
|
$set?(props: Partial<Record<string, any>>): void; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
} & Record<string, any>;
|
} & Record<string, any>; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -10,7 +10,7 @@ export type RemoteConfigurationResult = {
|
|||||||
settings: P2PConnectionInfo;
|
settings: P2PConnectionInfo;
|
||||||
} | {
|
} | {
|
||||||
type: "webdav";
|
type: "webdav";
|
||||||
settings: any;
|
settings: any; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
};
|
};
|
||||||
export declare class ConnectionStringParser {
|
export declare class ConnectionStringParser {
|
||||||
/**
|
/**
|
||||||
|
|||||||
+1
-1
@@ -34,7 +34,7 @@ export declare class LiveSyncError extends Error implements ErrorWithCause {
|
|||||||
* @example
|
* @example
|
||||||
* LiveSyncError.isCausedBy(someSyncParamsFetchError, SyncParamsNotFoundError); // Returns true if the error is caused by SyncParamsNotFoundError; this is usually represented as SyncParamsFetchError at the uppermost layer.
|
* LiveSyncError.isCausedBy(someSyncParamsFetchError, SyncParamsNotFoundError); // Returns true if the error is caused by SyncParamsNotFoundError; this is usually represented as SyncParamsFetchError at the uppermost layer.
|
||||||
*/
|
*/
|
||||||
static isCausedBy<T extends LiveSyncError>(error: unknown, errorClass: new (...args: any[]) => T): boolean;
|
static isCausedBy<T extends LiveSyncError>(error: unknown, errorClass: new (...args: any[]) => T): boolean; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
/**
|
/**
|
||||||
* Creates a new instance of the error class from an existing error.
|
* Creates a new instance of the error class from an existing error.
|
||||||
* @param error The error to wrap.
|
* @param error The error to wrap.
|
||||||
|
|||||||
+5
-5
@@ -1,4 +1,4 @@
|
|||||||
declare class Context<T extends Record<string | number | symbol, any> = object> {
|
declare class Context<T extends Record<string | number | symbol, any> = object> { // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
_data: Partial<T>;
|
_data: Partial<T>;
|
||||||
children: WeakRef<Context<T>>[];
|
children: WeakRef<Context<T>>[];
|
||||||
parent?: Context<T>;
|
parent?: Context<T>;
|
||||||
@@ -7,10 +7,10 @@ declare class Context<T extends Record<string | number | symbol, any> = object>
|
|||||||
get<V extends keyof T>(key: V): T[V] | undefined;
|
get<V extends keyof T>(key: V): T[V] | undefined;
|
||||||
setInGlobalContext<V extends keyof T>(key: V, value: T[V]): void;
|
setInGlobalContext<V extends keyof T>(key: V, value: T[V]): void;
|
||||||
setInNearestContext<V extends keyof T>(key: V, value: T[V]): void;
|
setInNearestContext<V extends keyof T>(key: V, value: T[V]): void;
|
||||||
spawnContext<V extends Record<string, any>>(data?: V): Context<V & T>;
|
spawnContext<V extends Record<string, any>>(data?: V): Context<V & T>; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
_disposeChild(child: Context<any>): void;
|
_disposeChild(child: Context<any>): void; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
dispose(): void;
|
dispose(): void;
|
||||||
}
|
}
|
||||||
export declare function getContext<T extends U, U extends Record<string, any> = object>(data?: T): Context<T & object>;
|
export declare function getContext<T extends U, U extends Record<string, any> = object>(data?: T): Context<T & object>; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
export declare function getIndependentContext<T extends U, U extends Record<string, any> = object>(data?: T): Context<T>;
|
export declare function getIndependentContext<T extends U, U extends Record<string, any> = object>(data?: T): Context<T>; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
export {};
|
export {};
|
||||||
|
|||||||
Vendored
+2
-2
@@ -1,5 +1,5 @@
|
|||||||
type InstanceHaveOnBindFunction = {
|
type InstanceHaveOnBindFunction = {
|
||||||
onBindFunction: (core: any, services: any) => void;
|
onBindFunction: (core: any, services: any) => void; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
} & Record<string, any>;
|
} & Record<string, any>; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
export declare function __$checkInstanceBinding<T extends InstanceHaveOnBindFunction>(instance: T): void;
|
export declare function __$checkInstanceBinding<T extends InstanceHaveOnBindFunction>(instance: T): void;
|
||||||
export {};
|
export {};
|
||||||
|
|||||||
+1
-1
@@ -20,7 +20,7 @@ export declare class LayeredChunkManager {
|
|||||||
allocCount: number;
|
allocCount: number;
|
||||||
derefCount: number;
|
derefCount: number;
|
||||||
};
|
};
|
||||||
addListener<K extends keyof ChunkManagerEventMap>(type: K, listener: (this: LayeredChunkManager, ev: ChunkManagerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): () => void;
|
addListener<K extends keyof ChunkManagerEventMap>(type: K, listener: (this: LayeredChunkManager, ev: ChunkManagerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): () => void; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
emitEvent<K extends keyof ChunkManagerEventMap>(type: K, detail: ChunkManagerEventMap[K]): void;
|
emitEvent<K extends keyof ChunkManagerEventMap>(type: K, detail: ChunkManagerEventMap[K]): void;
|
||||||
protected abort: AbortController;
|
protected abort: AbortController;
|
||||||
protected offChangeHandler: ReturnType<typeof this.changeManager.addCallback>;
|
protected offChangeHandler: ReturnType<typeof this.changeManager.addCallback>;
|
||||||
|
|||||||
+8
-8
@@ -32,18 +32,18 @@ export interface StorageEventManagerBaseDependencies {
|
|||||||
/**
|
/**
|
||||||
* Type helper to extract the file type from a storage event manager adapter
|
* Type helper to extract the file type from a storage event manager adapter
|
||||||
*/
|
*/
|
||||||
export type ExtractFile<T> = T extends IStorageEventManagerAdapter<infer F, any> ? F : never;
|
export type ExtractFile<T> = T extends IStorageEventManagerAdapter<infer F, any> ? F : never; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
/**
|
/**
|
||||||
* Type helper to extract the folder type from a storage event manager adapter
|
* Type helper to extract the folder type from a storage event manager adapter
|
||||||
*/
|
*/
|
||||||
export type ExtractFolder<T> = T extends IStorageEventManagerAdapter<any, infer D> ? D : never;
|
export type ExtractFolder<T> = T extends IStorageEventManagerAdapter<any, infer D> ? D : never; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
/**
|
/**
|
||||||
* Base class for storage event management
|
* Base class for storage event management
|
||||||
* Uses adapter pattern for platform-specific implementations
|
* Uses adapter pattern for platform-specific implementations
|
||||||
*
|
*
|
||||||
* @template TAdapter - The storage event manager adapter type
|
* @template TAdapter - The storage event manager adapter type
|
||||||
*/
|
*/
|
||||||
export declare abstract class StorageEventManagerBase<TAdapter extends IStorageEventManagerAdapter<any, any>> extends StorageEventManager {
|
export declare abstract class StorageEventManagerBase<TAdapter extends IStorageEventManagerAdapter<any, any>> extends StorageEventManager { // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
_log: ReturnType<typeof createInstanceLogFunction>;
|
_log: ReturnType<typeof createInstanceLogFunction>;
|
||||||
protected setting: SettingService;
|
protected setting: SettingService;
|
||||||
protected vaultService: IVaultService;
|
protected vaultService: IVaultService;
|
||||||
@@ -125,11 +125,11 @@ export declare abstract class StorageEventManagerBase<TAdapter extends IStorageE
|
|||||||
/**
|
/**
|
||||||
* Platform-agnostic event handlers
|
* Platform-agnostic event handlers
|
||||||
*/
|
*/
|
||||||
protected watchEditorChange(editor: any, info: any): void;
|
protected watchEditorChange(editor: any, info: any): void; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
protected watchVaultCreate(file: any, ctx?: any): void;
|
protected watchVaultCreate(file: any, ctx?: any): void; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
protected watchVaultChange(file: any, ctx?: any): void;
|
protected watchVaultChange(file: any, ctx?: any): void; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
protected watchVaultDelete(file: any, ctx?: any): void;
|
protected watchVaultDelete(file: any, ctx?: any): void; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
protected watchVaultRename(file: any, oldPath: string, ctx?: any): void;
|
protected watchVaultRename(file: any, oldPath: string, ctx?: any): void; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
protected watchVaultRawEvents(path: FilePath): void;
|
protected watchVaultRawEvents(path: FilePath): void;
|
||||||
protected _watchVaultRawEvents(path: FilePath): Promise<void>;
|
protected _watchVaultRawEvents(path: FilePath): Promise<void>;
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -6,6 +6,6 @@ export declare const wrappedDeflate: (data: Uint8Array<ArrayBuffer>, opts: fflat
|
|||||||
export declare function _decompressText(compressed: string, _useUTF16?: boolean): Promise<string>;
|
export declare function _decompressText(compressed: string, _useUTF16?: boolean): Promise<string>;
|
||||||
export declare function compressDoc(doc: EntryDoc): Promise<import("../common/types").NoteEntry | import("../common/types").NewEntry | import("../common/types").PlainEntry | import("../common/types").EntryLeaf | import("../common/types").EntryChunkPack | import("../common/types").EntryVersionInfo | import("@lib/common/models/db.definition").EntryMilestoneInfo | import("@lib/common/models/db.definition").EntryNodeInfo>;
|
export declare function compressDoc(doc: EntryDoc): Promise<import("../common/types").NoteEntry | import("../common/types").NewEntry | import("../common/types").PlainEntry | import("../common/types").EntryLeaf | import("../common/types").EntryChunkPack | import("../common/types").EntryVersionInfo | import("@lib/common/models/db.definition").EntryMilestoneInfo | import("@lib/common/models/db.definition").EntryNodeInfo>;
|
||||||
export declare function decompressDoc(doc: EntryDoc): Promise<import("../common/types").NoteEntry | import("../common/types").NewEntry | import("../common/types").PlainEntry | import("../common/types").EntryLeaf | import("../common/types").EntryChunkPack | import("../common/types").EntryVersionInfo | import("@lib/common/models/db.definition").EntryMilestoneInfo | import("@lib/common/models/db.definition").EntryNodeInfo>;
|
export declare function decompressDoc(doc: EntryDoc): Promise<import("../common/types").NoteEntry | import("../common/types").NewEntry | import("../common/types").PlainEntry | import("../common/types").EntryLeaf | import("../common/types").EntryChunkPack | import("../common/types").EntryVersionInfo | import("@lib/common/models/db.definition").EntryMilestoneInfo | import("@lib/common/models/db.definition").EntryNodeInfo>;
|
||||||
export declare function wrapFflateFunc<T, U>(func: (data: T, opts: U, cb: fflate.FlateCallback) => any): (data: T, opts: U) => Promise<Uint8Array<ArrayBuffer>>;
|
export declare function wrapFflateFunc<T, U>(func: (data: T, opts: U, cb: fflate.FlateCallback) => any): (data: T, opts: U) => Promise<Uint8Array<ArrayBuffer>>; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
export declare const replicationFilter: (db: PouchDB.Database<EntryDoc>, compress: boolean) => void;
|
export declare const replicationFilter: (db: PouchDB.Database<EntryDoc>, compress: boolean) => void;
|
||||||
export declare const MARK_SHIFT_COMPRESSED = "\u000ELZ\u001D";
|
export declare const MARK_SHIFT_COMPRESSED = "\u000ELZ\u001D";
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import type { NecessaryServices } from "@lib/interfaces/ServiceModule";
|
import type { NecessaryServices } from "@lib/interfaces/ServiceModule";
|
||||||
import type { P2PPaneParams } from "./UseP2PReplicatorResult";
|
import type { P2PPaneParams } from "./UseP2PReplicatorResult";
|
||||||
export type P2PViewFactory = (leaf: any) => any;
|
export type P2PViewFactory = (leaf: any) => any; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
/**
|
/**
|
||||||
* ServiceFeature: P2P Replicator lifecycle management.
|
* ServiceFeature: P2P Replicator lifecycle management.
|
||||||
* Binds a LiveSyncTrysteroReplicator to the host's lifecycle events,
|
* Binds a LiveSyncTrysteroReplicator to the host's lifecycle events,
|
||||||
|
|||||||
+2
-2
@@ -3,9 +3,9 @@ export declare function createHostingDB(env: ReplicatorHostEnv): {
|
|||||||
info: () => Promise<PouchDB.Core.DatabaseInfo>;
|
info: () => Promise<PouchDB.Core.DatabaseInfo>;
|
||||||
changes: (options: PouchDB.Core.ChangesOptions) => PouchDB.Core.Changes<import("../../common/types").EntryDoc>;
|
changes: (options: PouchDB.Core.ChangesOptions) => PouchDB.Core.Changes<import("../../common/types").EntryDoc>;
|
||||||
revsDiff: (diff: PouchDB.Core.RevisionDiffOptions) => Promise<PouchDB.Core.RevisionDiffResponse>;
|
revsDiff: (diff: PouchDB.Core.RevisionDiffOptions) => Promise<PouchDB.Core.RevisionDiffResponse>;
|
||||||
bulkDocs: (docs: PouchDB.Core.PostDocument<any>[], options?: PouchDB.Core.BulkDocsOptions) => Promise<(PouchDB.Core.Response | PouchDB.Core.Error)[]>;
|
bulkDocs: (docs: PouchDB.Core.PostDocument<any>[], options?: PouchDB.Core.BulkDocsOptions) => Promise<(PouchDB.Core.Response | PouchDB.Core.Error)[]>; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
bulkGet: (options: PouchDB.Core.BulkGetOptions) => Promise<PouchDB.Core.BulkGetResponse<import("../../common/types").EntryDoc>>;
|
bulkGet: (options: PouchDB.Core.BulkGetOptions) => Promise<PouchDB.Core.BulkGetResponse<import("../../common/types").EntryDoc>>;
|
||||||
put: (doc: PouchDB.Core.PutDocument<any>, options?: PouchDB.Core.PutOptions) => Promise<PouchDB.Core.Response>;
|
put: (doc: PouchDB.Core.PutDocument<any>, options?: PouchDB.Core.PutOptions) => Promise<PouchDB.Core.Response>; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
get: (id: string, options?: PouchDB.Core.GetOptions) => Promise<import("../../common/types").EntryDoc & PouchDB.Core.IdMeta & PouchDB.Core.GetMeta>;
|
get: (id: string, options?: PouchDB.Core.GetOptions) => Promise<import("../../common/types").EntryDoc & PouchDB.Core.IdMeta & PouchDB.Core.GetMeta>;
|
||||||
_stopHosting: () => void;
|
_stopHosting: () => void;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -9,11 +9,11 @@ export declare class TrysteroReplicatorP2PClient {
|
|||||||
get remoteDB(): PouchDBShim<EntryDoc>;
|
get remoteDB(): PouchDBShim<EntryDoc>;
|
||||||
constructor(server: TrysteroReplicatorP2PServer, connectedPeerId: string);
|
constructor(server: TrysteroReplicatorP2PServer, connectedPeerId: string);
|
||||||
_bindRemoteDB(): PouchDBShim<EntryDoc>;
|
_bindRemoteDB(): PouchDBShim<EntryDoc>;
|
||||||
_sendRPC(type: string, args: any[], timeout?: number): Promise<import("../../rpc").JsonLike>;
|
_sendRPC(type: string, args: any[], timeout?: number): Promise<import("../../rpc").JsonLike>; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
__onResponse(_data: unknown): void;
|
__onResponse(_data: unknown): void;
|
||||||
bindRemoteFunction<T extends any[], U>(type: string, timeout?: number): (...args: T) => Promise<U>;
|
bindRemoteFunction<T extends any[], U>(type: string, timeout?: number): (...args: T) => Promise<U>; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
invokeRemoteFunction<T extends any[], U>(type: string, args: T, timeout?: number): Promise<U>;
|
invokeRemoteFunction<T extends any[], U>(type: string, args: T, timeout?: number): Promise<U>; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
bindRemoteObjectFunctions<T extends BindableObject<any>, U extends keyof T>(key: U, timeout?: number): (...args: Parameters<T[U]>) => Promise<Awaited<ReturnType<T[U]>>>;
|
bindRemoteObjectFunctions<T extends BindableObject<any>, U extends keyof T>(key: U, timeout?: number): (...args: Parameters<T[U]>) => Promise<Awaited<ReturnType<T[U]>>>; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
invokeRemoteObjectFunction<T extends BindableObject<any>, U extends NonPrivateMethodKeys<T>>(key: U, args: Parameters<T[U]>, timeout?: number): Promise<Awaited<ReturnType<T[U]>>>;
|
invokeRemoteObjectFunction<T extends BindableObject<any>, U extends NonPrivateMethodKeys<T>>(key: U, args: Parameters<T[U]>, timeout?: number): Promise<Awaited<ReturnType<T[U]>>>; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
close(): void;
|
close(): void;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -57,9 +57,9 @@ export declare class TrysteroReplicatorP2PServer {
|
|||||||
_serverPeerId: string;
|
_serverPeerId: string;
|
||||||
_activeRoomId: string;
|
_activeRoomId: string;
|
||||||
___send?: ActionSender<Payload>;
|
___send?: ActionSender<Payload>;
|
||||||
assignedFunctions: Map<string, (...args: any[]) => any>;
|
assignedFunctions: Map<string, (...args: any[]) => any>; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
clients: Map<string, TrysteroReplicatorP2PClient>;
|
clients: Map<string, TrysteroReplicatorP2PClient>;
|
||||||
_bindingObjects: BindableObject<any>[];
|
_bindingObjects: BindableObject<any>[]; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
_rpcRoom?: RpcRoom;
|
_rpcRoom?: RpcRoom;
|
||||||
protected _peerStatusEventCleanup: (() => void) | undefined;
|
protected _peerStatusEventCleanup: (() => void) | undefined;
|
||||||
protected _peerFailureAnalysisCleanup: (() => void) | undefined;
|
protected _peerFailureAnalysisCleanup: (() => void) | undefined;
|
||||||
@@ -99,8 +99,8 @@ export declare class TrysteroReplicatorP2PServer {
|
|||||||
private _onPeerLeave;
|
private _onPeerLeave;
|
||||||
activePeer: Map<string, RTCPeerConnection>;
|
activePeer: Map<string, RTCPeerConnection>;
|
||||||
onAfterJoinRoom(): void;
|
onAfterJoinRoom(): void;
|
||||||
startService(bindings?: BindableObject<any>[]): Promise<void>;
|
startService(bindings?: BindableObject<any>[]): Promise<void>; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
start(bindings?: BindableObject<any>[]): Promise<void>;
|
start(bindings?: BindableObject<any>[]): Promise<void>; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
/**
|
/**
|
||||||
* @deprecated Use serveFunction or serveObject instead. This is only for backward compatibility and may be removed in the future.
|
* @deprecated Use serveFunction or serveObject instead. This is only for backward compatibility and may be removed in the future.
|
||||||
* @param type
|
* @param type
|
||||||
|
|||||||
+6
-6
@@ -9,10 +9,10 @@ export type DIRECTION_RESPONSE = typeof DIRECTION_RESPONSE;
|
|||||||
export declare const DEFAULT_RPC_TIMEOUT = 30000;
|
export declare const DEFAULT_RPC_TIMEOUT = 30000;
|
||||||
export declare const BULK_GET_RPC_TIMEOUT = 40000;
|
export declare const BULK_GET_RPC_TIMEOUT = 40000;
|
||||||
export type NonPrivateMethodKeys<T> = {
|
export type NonPrivateMethodKeys<T> = {
|
||||||
[K in keyof T]: K extends `_${string}` ? never : K extends `constructor` ? never : T[K] extends (...args: any[]) => any ? K : never;
|
[K in keyof T]: K extends `_${string}` ? never : K extends `constructor` ? never : T[K] extends (...args: any[]) => any ? K : never; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
}[keyof T];
|
}[keyof T];
|
||||||
export type BindableObject<T> = {
|
export type BindableObject<T> = {
|
||||||
[k in NonPrivateMethodKeys<T>]: (...args: any[]) => any;
|
[k in NonPrivateMethodKeys<T>]: (...args: any[]) => any; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
};
|
};
|
||||||
export type ConnectionInfo = {
|
export type ConnectionInfo = {
|
||||||
relayURIs: string[];
|
relayURIs: string[];
|
||||||
@@ -27,14 +27,14 @@ export type Request = {
|
|||||||
type: string;
|
type: string;
|
||||||
direction: DIRECTION_REQUEST;
|
direction: DIRECTION_REQUEST;
|
||||||
seq: number;
|
seq: number;
|
||||||
args: any[];
|
args: any[]; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
};
|
};
|
||||||
export type Response = {
|
export type Response = {
|
||||||
type: string;
|
type: string;
|
||||||
direction: DIRECTION_RESPONSE;
|
direction: DIRECTION_RESPONSE;
|
||||||
seq: number;
|
seq: number;
|
||||||
data?: any;
|
data?: any; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
error?: any;
|
error?: any; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
};
|
};
|
||||||
export type DeviceInfo = {
|
export type DeviceInfo = {
|
||||||
currentPeerId: string;
|
currentPeerId: string;
|
||||||
@@ -75,7 +75,7 @@ export interface ReplicatorHost {
|
|||||||
export interface ReplicatorHostEnv extends ReplicatorHost {
|
export interface ReplicatorHostEnv extends ReplicatorHost {
|
||||||
settings: P2PSyncSetting;
|
settings: P2PSyncSetting;
|
||||||
db: PouchDB.Database<EntryDoc>;
|
db: PouchDB.Database<EntryDoc>;
|
||||||
simpleStore: SimpleStore<any>;
|
simpleStore: SimpleStore<any>; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
processReplicatedDocs(docs: Array<PouchDB.Core.ExistingDocument<EntryDoc>>): void | Promise<void>;
|
processReplicatedDocs(docs: Array<PouchDB.Core.ExistingDocument<EntryDoc>>): void | Promise<void>;
|
||||||
}
|
}
|
||||||
export type Advertisement = {
|
export type Advertisement = {
|
||||||
|
|||||||
+7
-7
@@ -16,26 +16,26 @@ export interface FileAccessBaseDependencies {
|
|||||||
/**
|
/**
|
||||||
* Type helper to extract the abstract file type from a file system adapter
|
* Type helper to extract the abstract file type from a file system adapter
|
||||||
*/
|
*/
|
||||||
export type ExtractAbstractFile<T> = T extends IFileSystemAdapter<infer A, any, any, any> ? A : never;
|
export type ExtractAbstractFile<T> = T extends IFileSystemAdapter<infer A, any, any, any> ? A : never; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
/**
|
/**
|
||||||
* Type helper to extract the file type from a file system adapter
|
* Type helper to extract the file type from a file system adapter
|
||||||
*/
|
*/
|
||||||
export type ExtractFile<T> = T extends IFileSystemAdapter<any, infer F, any, any> ? F : never;
|
export type ExtractFile<T> = T extends IFileSystemAdapter<any, infer F, any, any> ? F : never; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
/**
|
/**
|
||||||
* Type helper to extract the folder type from a file system adapter
|
* Type helper to extract the folder type from a file system adapter
|
||||||
*/
|
*/
|
||||||
export type ExtractFolder<T> = T extends IFileSystemAdapter<any, any, infer D, any> ? D : never;
|
export type ExtractFolder<T> = T extends IFileSystemAdapter<any, any, infer D, any> ? D : never; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
/**
|
/**
|
||||||
* Type helper to extract the stat type from a file system adapter
|
* Type helper to extract the stat type from a file system adapter
|
||||||
*/
|
*/
|
||||||
export type ExtractStat<T> = T extends IFileSystemAdapter<any, any, any, infer S> ? S : never;
|
export type ExtractStat<T> = T extends IFileSystemAdapter<any, any, any, infer S> ? S : never; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
/**
|
/**
|
||||||
* Base class for file access operations
|
* Base class for file access operations
|
||||||
* Uses adapter pattern for platform-specific implementations
|
* Uses adapter pattern for platform-specific implementations
|
||||||
*
|
*
|
||||||
* @template TAdapter - The file system adapter type, which determines all native file types
|
* @template TAdapter - The file system adapter type, which determines all native file types
|
||||||
*/
|
*/
|
||||||
export declare class FileAccessBase<TAdapter extends IFileSystemAdapter<any, any, any, any>> {
|
export declare class FileAccessBase<TAdapter extends IFileSystemAdapter<any, any, any, any>> { // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
protected storageAccessManager: IStorageAccessManager;
|
protected storageAccessManager: IStorageAccessManager;
|
||||||
protected vaultService: IVaultService;
|
protected vaultService: IVaultService;
|
||||||
protected settingService: ISettingService;
|
protected settingService: ISettingService;
|
||||||
@@ -52,7 +52,7 @@ export declare class FileAccessBase<TAdapter extends IFileSystemAdapter<any, any
|
|||||||
normalisePath(path: string): string;
|
normalisePath(path: string): string;
|
||||||
protected _writeOp<T extends ExtractAbstractFile<TAdapter> | string, U>(file: T, callback: (path: FilePath, file: T) => Promise<U>): Promise<U>;
|
protected _writeOp<T extends ExtractAbstractFile<TAdapter> | string, U>(file: T, callback: (path: FilePath, file: T) => Promise<U>): Promise<U>;
|
||||||
protected _readOp<T extends ExtractAbstractFile<TAdapter> | string, U>(file: T, callback: (path: FilePath, file: T) => Promise<U>): Promise<U>;
|
protected _readOp<T extends ExtractAbstractFile<TAdapter> | string, U>(file: T, callback: (path: FilePath, file: T) => Promise<U>): Promise<U>;
|
||||||
tryAdapterStat(file: ExtractFile<TAdapter> | string): Promise<any>;
|
tryAdapterStat(file: ExtractFile<TAdapter> | string): Promise<any>; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
adapterStat(file: ExtractFile<TAdapter> | string): Promise<ExtractStat<TAdapter> | null>;
|
adapterStat(file: ExtractFile<TAdapter> | string): Promise<ExtractStat<TAdapter> | null>;
|
||||||
adapterExists(file: ExtractFile<TAdapter> | string): Promise<boolean>;
|
adapterExists(file: ExtractFile<TAdapter> | string): Promise<boolean>;
|
||||||
adapterRemove(file: ExtractFile<TAdapter> | string): Promise<void>;
|
adapterRemove(file: ExtractFile<TAdapter> | string): Promise<void>;
|
||||||
@@ -70,7 +70,7 @@ export declare class FileAccessBase<TAdapter extends IFileSystemAdapter<any, any
|
|||||||
vaultReadAuto(file: ExtractFile<TAdapter>): Promise<string | ArrayBuffer>;
|
vaultReadAuto(file: ExtractFile<TAdapter>): Promise<string | ArrayBuffer>;
|
||||||
vaultModify(file: ExtractFile<TAdapter>, data: string | ArrayBuffer | Uint8Array<ArrayBuffer>, options?: UXDataWriteOptions): Promise<boolean>;
|
vaultModify(file: ExtractFile<TAdapter>, data: string | ArrayBuffer | Uint8Array<ArrayBuffer>, options?: UXDataWriteOptions): Promise<boolean>;
|
||||||
vaultCreate(path: string, data: string | ArrayBuffer | Uint8Array<ArrayBuffer>, options?: UXDataWriteOptions): Promise<ExtractFile<TAdapter>>;
|
vaultCreate(path: string, data: string | ArrayBuffer | Uint8Array<ArrayBuffer>, options?: UXDataWriteOptions): Promise<ExtractFile<TAdapter>>;
|
||||||
trigger(name: string, ...data: any[]): any;
|
trigger(name: string, ...data: any[]): any; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
reconcileInternalFile(path: string): Promise<void>;
|
reconcileInternalFile(path: string): Promise<void>;
|
||||||
/**
|
/**
|
||||||
* Append data to a file using the adapter's append method. This is useful for large files that cannot be read into memory.
|
* Append data to a file using the adapter's append method. This is useful for large files that cannot be read into memory.
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ import type { VaultService } from "@lib/services/base/VaultService";
|
|||||||
import type { SettingService } from "@lib/services/base/SettingService";
|
import type { SettingService } from "@lib/services/base/SettingService";
|
||||||
import type { FileAccessBase, ExtractFile, ExtractFolder } from "./FileAccessBase";
|
import type { FileAccessBase, ExtractFile, ExtractFolder } from "./FileAccessBase";
|
||||||
import type { IFileSystemAdapter } from "./adapters";
|
import type { IFileSystemAdapter } from "./adapters";
|
||||||
export interface StorageAccessBaseDependencies<TAdapter extends IFileSystemAdapter<any, any, any, any>> {
|
export interface StorageAccessBaseDependencies<TAdapter extends IFileSystemAdapter<any, any, any, any>> { // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
API: APIService;
|
API: APIService;
|
||||||
appLifecycle: AppLifecycleService;
|
appLifecycle: AppLifecycleService;
|
||||||
fileProcessing: FileProcessingService;
|
fileProcessing: FileProcessingService;
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import type { UXFileInfoStub, UXFolderInfo } from "@lib/common/models/fileaccess
|
|||||||
* Conversion adapter interface
|
* Conversion adapter interface
|
||||||
* Converts between native file system types and universal types
|
* Converts between native file system types and universal types
|
||||||
*/
|
*/
|
||||||
export interface IConversionAdapter<TNativeFile = any, TNativeFolder = any> {
|
export interface IConversionAdapter<TNativeFile = any, TNativeFolder = any> { // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
/**
|
/**
|
||||||
* Convert a native file object to a universal file info stub
|
* Convert a native file object to a universal file info stub
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -43,5 +43,5 @@ export interface IVaultAdapter<TNativeFile = unknown> {
|
|||||||
/**
|
/**
|
||||||
* Trigger an event in the vault
|
* Trigger an event in the vault
|
||||||
*/
|
*/
|
||||||
trigger(name: string, ...data: any[]): any;
|
trigger(name: string, ...data: any[]): any; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
import { ServiceContext } from "./base/ServiceBase";
|
import { ServiceContext } from "./base/ServiceBase";
|
||||||
import { InjectableServiceHub } from "./implements/injectable/InjectableServiceHub";
|
import { InjectableServiceHub } from "./implements/injectable/InjectableServiceHub";
|
||||||
import type { DatabaseService } from "./base/DatabaseService.ts";
|
import type { DatabaseService } from "./base/DatabaseService.ts";
|
||||||
type Constructor<T> = new (...args: any[]) => T;
|
type Constructor<T> = new (...args: any[]) => T; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
export declare class HeadlessServiceHub<T extends ServiceContext> extends InjectableServiceHub<T> {
|
export declare class HeadlessServiceHub<T extends ServiceContext> extends InjectableServiceHub<T> {
|
||||||
constructor(_context?: T, overrideServiceConstructor?: {
|
constructor(_context?: T, overrideServiceConstructor?: {
|
||||||
database?: Constructor<DatabaseService<T>>;
|
database?: Constructor<DatabaseService<T>>;
|
||||||
|
|||||||
+3
-3
@@ -58,20 +58,20 @@ export declare abstract class APIService<T extends ServiceContext = ServiceConte
|
|||||||
* @param type
|
* @param type
|
||||||
* @param factory
|
* @param factory
|
||||||
*/
|
*/
|
||||||
abstract registerWindow(type: string, factory: (leaf: any) => any): void;
|
abstract registerWindow(type: string, factory: (leaf: any) => any): void; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
/**
|
/**
|
||||||
* Add a ribbon icon to the UI.
|
* Add a ribbon icon to the UI.
|
||||||
* @param icon
|
* @param icon
|
||||||
* @param title
|
* @param title
|
||||||
* @param callback
|
* @param callback
|
||||||
*/
|
*/
|
||||||
abstract addRibbonIcon(icon: string, title: string, callback: (evt: MouseEvent) => any): HTMLElement;
|
abstract addRibbonIcon(icon: string, title: string, callback: (evt: MouseEvent) => any): HTMLElement; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
/**
|
/**
|
||||||
* Register a protocol handler.
|
* Register a protocol handler.
|
||||||
* @param action The action string for the protocol.
|
* @param action The action string for the protocol.
|
||||||
* @param handler The handler function for the protocol.
|
* @param handler The handler function for the protocol.
|
||||||
*/
|
*/
|
||||||
abstract registerProtocolHandler(action: string, handler: (params: Record<string, string>) => any): void;
|
abstract registerProtocolHandler(action: string, handler: (params: Record<string, string>) => any): void; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
/**
|
/**
|
||||||
* Get the basic UI component for showing a confirmation dialog to the user.
|
* Get the basic UI component for showing a confirmation dialog to the user.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ export declare abstract class AppLifecycleService<T extends ServiceContext = Ser
|
|||||||
* This is typically called during the unload() method of the plugin.
|
* This is typically called during the unload() method of the plugin.
|
||||||
* Entry point to unload everything.
|
* Entry point to unload everything.
|
||||||
*/
|
*/
|
||||||
readonly onAppUnload: import("@lib/services/lib/HandlerUtils").CollectiveHandlerFunction<() => Promise<undefined[]>, any>;
|
readonly onAppUnload: import("@lib/services/lib/HandlerUtils").CollectiveHandlerFunction<() => Promise<undefined[]>, any>; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
/**
|
/**
|
||||||
* Event triggered before the plug-in is unloaded.
|
* Event triggered before the plug-in is unloaded.
|
||||||
* This is typically used to perform any necessary cleanup or save state before the plug-in is unloaded.
|
* This is typically used to perform any necessary cleanup or save state before the plug-in is unloaded.
|
||||||
@@ -128,5 +128,5 @@ export declare abstract class AppLifecycleService<T extends ServiceContext = Ser
|
|||||||
/**
|
/**
|
||||||
* Get unresolved error messages.
|
* Get unresolved error messages.
|
||||||
*/
|
*/
|
||||||
readonly getUnresolvedMessages: import("@lib/services/lib/HandlerUtils").CollectiveHandlerFunction<() => Promise<(string | Error)[][]>, any>;
|
readonly getUnresolvedMessages: import("@lib/services/lib/HandlerUtils").CollectiveHandlerFunction<() => Promise<(string | Error)[][]>, any>; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-2
@@ -10,7 +10,7 @@ export declare abstract class ConflictService<T extends ServiceContext = Service
|
|||||||
/**
|
/**
|
||||||
* Get an optional conflict check method for a given file (virtual) path.
|
* Get an optional conflict check method for a given file (virtual) path.
|
||||||
*/
|
*/
|
||||||
readonly getOptionalConflictCheckMethod: import("@lib/services/lib/HandlerUtils").MultipleHandlerFunction<(path: FilePathWithPrefix) => Promise<boolean | undefined | "newer">, any>;
|
readonly getOptionalConflictCheckMethod: import("@lib/services/lib/HandlerUtils").MultipleHandlerFunction<(path: FilePathWithPrefix) => Promise<boolean | undefined | "newer">, any>; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
/**
|
/**
|
||||||
* Queue a check for conflicts if the file is currently open in the editor.
|
* Queue a check for conflicts if the file is currently open in the editor.
|
||||||
* @param path The file (virtual) path to check for conflicts.
|
* @param path The file (virtual) path to check for conflicts.
|
||||||
@@ -31,7 +31,7 @@ export declare abstract class ConflictService<T extends ServiceContext = Service
|
|||||||
* @param conflictCheckResult The result of the conflict check.
|
* @param conflictCheckResult The result of the conflict check.
|
||||||
* @returns A promise that resolves to true if the conflict was resolved, false if not, or undefined if no action was taken.
|
* @returns A promise that resolves to true if the conflict was resolved, false if not, or undefined if no action was taken.
|
||||||
*/
|
*/
|
||||||
readonly resolveByUserInteraction: import("@lib/services/lib/HandlerUtils").MultipleHandlerFunction<(filename: FilePathWithPrefix, conflictCheckResult: import("../../common/types").diff_result) => Promise<boolean | undefined>, any>;
|
readonly resolveByUserInteraction: import("@lib/services/lib/HandlerUtils").MultipleHandlerFunction<(filename: FilePathWithPrefix, conflictCheckResult: import("../../common/types").diff_result) => Promise<boolean | undefined>, any>; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
/**
|
/**
|
||||||
* Resolve a conflict by deleting a specific revision.
|
* Resolve a conflict by deleting a specific revision.
|
||||||
* @param path The file (virtual) path with conflict.
|
* @param path The file (virtual) path with conflict.
|
||||||
|
|||||||
+6
-6
@@ -26,10 +26,10 @@ export interface ICommandCompat {
|
|||||||
id: string;
|
id: string;
|
||||||
name: string;
|
name: string;
|
||||||
icon?: string;
|
icon?: string;
|
||||||
callback?: () => any;
|
callback?: () => any; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
checkCallback?: (checking: boolean) => boolean | void;
|
checkCallback?: (checking: boolean) => boolean | void;
|
||||||
editorCallback?: (editor: any, ctx: any) => any;
|
editorCallback?: (editor: any, ctx: any) => any; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
editorCheckCallback?: (checking: any, editor: any, ctx: any) => boolean | void;
|
editorCheckCallback?: (checking: any, editor: any, ctx: any) => boolean | void; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
}
|
}
|
||||||
export interface IAPIService {
|
export interface IAPIService {
|
||||||
getCustomFetchHandler(): FetchHttpHandler;
|
getCustomFetchHandler(): FetchHttpHandler;
|
||||||
@@ -44,9 +44,9 @@ export interface IAPIService {
|
|||||||
getAppVersion(): string;
|
getAppVersion(): string;
|
||||||
getPluginVersion(): string;
|
getPluginVersion(): string;
|
||||||
addCommand<TCommand extends ICommandCompat>(command: TCommand): TCommand;
|
addCommand<TCommand extends ICommandCompat>(command: TCommand): TCommand;
|
||||||
registerWindow(type: string, factory: (leaf: any) => any): void;
|
registerWindow(type: string, factory: (leaf: any) => any): void; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
addRibbonIcon(icon: string, title: string, callback: (evt: MouseEvent) => any): HTMLElement;
|
addRibbonIcon(icon: string, title: string, callback: (evt: MouseEvent) => any): HTMLElement; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
registerProtocolHandler(action: string, handler: (params: Record<string, string>) => any): void;
|
registerProtocolHandler(action: string, handler: (params: Record<string, string>) => any): void; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
confirm: Confirm;
|
confirm: Confirm;
|
||||||
responseCount: ReactiveSource<number>;
|
responseCount: ReactiveSource<number>;
|
||||||
requestCount: ReactiveSource<number>;
|
requestCount: ReactiveSource<number>;
|
||||||
|
|||||||
+1
-1
@@ -16,7 +16,7 @@ export interface KeyValueDBDependencies<T extends ServiceContext = ServiceContex
|
|||||||
export declare abstract class KeyValueDBService<T extends ServiceContext = ServiceContext> extends ServiceBase<T> implements IKeyValueDBService {
|
export declare abstract class KeyValueDBService<T extends ServiceContext = ServiceContext> extends ServiceBase<T> implements IKeyValueDBService {
|
||||||
private _kvDB;
|
private _kvDB;
|
||||||
private _simpleStore;
|
private _simpleStore;
|
||||||
get simpleStore(): SimpleStore<unknown, any>;
|
get simpleStore(): SimpleStore<unknown, any>; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
get kvDB(): KeyValueDatabase;
|
get kvDB(): KeyValueDatabase;
|
||||||
private databaseEvents;
|
private databaseEvents;
|
||||||
private vault;
|
private vault;
|
||||||
|
|||||||
@@ -77,7 +77,7 @@ export declare abstract class ReplicationService<T extends ServiceContext = Serv
|
|||||||
/**
|
/**
|
||||||
* Check if there is a connection failure with the remote database.
|
* Check if there is a connection failure with the remote database.
|
||||||
*/
|
*/
|
||||||
readonly checkConnectionFailure: import("@lib/services/lib/HandlerUtils").MultipleHandlerFunction<() => Promise<boolean | "CHECKAGAIN" | undefined>, any>;
|
readonly checkConnectionFailure: import("@lib/services/lib/HandlerUtils").MultipleHandlerFunction<() => Promise<boolean | "CHECKAGAIN" | undefined>, any>; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
databaseQueueCount: import("octagonal-wheels/dataobject/reactive_v2").ReactiveSource<number>;
|
databaseQueueCount: import("octagonal-wheels/dataobject/reactive_v2").ReactiveSource<number>;
|
||||||
storageApplyingCount: import("octagonal-wheels/dataobject/reactive_v2").ReactiveSource<number>;
|
storageApplyingCount: import("octagonal-wheels/dataobject/reactive_v2").ReactiveSource<number>;
|
||||||
replicationResultCount: import("octagonal-wheels/dataobject/reactive_v2").ReactiveSource<number>;
|
replicationResultCount: import("octagonal-wheels/dataobject/reactive_v2").ReactiveSource<number>;
|
||||||
|
|||||||
+1
-1
@@ -35,7 +35,7 @@ export declare abstract class ReplicatorService<T extends ServiceContext = Servi
|
|||||||
/**
|
/**
|
||||||
* Get a new replicator instance based on the provided settings.
|
* Get a new replicator instance based on the provided settings.
|
||||||
*/
|
*/
|
||||||
readonly getNewReplicator: import("@lib/services/lib/HandlerUtils").MultipleHandlerFunction<(settingOverride?: Partial<import("../../common/types").ObsidianLiveSyncSettings>) => Promise<LiveSyncAbstractReplicator | undefined | false>, any>;
|
readonly getNewReplicator: import("@lib/services/lib/HandlerUtils").MultipleHandlerFunction<(settingOverride?: Partial<import("../../common/types").ObsidianLiveSyncSettings>) => Promise<LiveSyncAbstractReplicator | undefined | false>, any>; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
readonly onReplicatorInitialised: import("@lib/services/lib/HandlerUtils").BooleanMultipleHandlerFunction<() => Promise<boolean>>;
|
readonly onReplicatorInitialised: import("@lib/services/lib/HandlerUtils").BooleanMultipleHandlerFunction<() => Promise<boolean>>;
|
||||||
/**
|
/**
|
||||||
* Get the currently active replicator instance.
|
* Get the currently active replicator instance.
|
||||||
|
|||||||
+1
-1
@@ -85,7 +85,7 @@ export declare abstract class SettingService<T extends ServiceContext = ServiceC
|
|||||||
readonly onSettingLoaded: import("@lib/services/lib/HandlerUtils").BooleanMultipleHandlerFunction<(settings: ObsidianLiveSyncSettings) => Promise<boolean>>;
|
readonly onSettingLoaded: import("@lib/services/lib/HandlerUtils").BooleanMultipleHandlerFunction<(settings: ObsidianLiveSyncSettings) => Promise<boolean>>;
|
||||||
readonly onSettingChanged: import("@lib/services/lib/HandlerUtils").BooleanMultipleHandlerFunction<(settings: ObsidianLiveSyncSettings) => Promise<boolean>>;
|
readonly onSettingChanged: import("@lib/services/lib/HandlerUtils").BooleanMultipleHandlerFunction<(settings: ObsidianLiveSyncSettings) => Promise<boolean>>;
|
||||||
readonly onSettingSaved: import("@lib/services/lib/HandlerUtils").BooleanMultipleHandlerFunction<(settings: ObsidianLiveSyncSettings) => Promise<boolean>>;
|
readonly onSettingSaved: import("@lib/services/lib/HandlerUtils").BooleanMultipleHandlerFunction<(settings: ObsidianLiveSyncSettings) => Promise<boolean>>;
|
||||||
readonly onBeforeSaveSettingData: import("@lib/services/lib/HandlerUtils").CollectiveHandlerFunction<(nextSettings: ObsidianLiveSyncSettings, previousSettings: ObsidianLiveSyncSettings) => Promise<(Partial<ObsidianLiveSyncSettings> | void)[]>, any>;
|
readonly onBeforeSaveSettingData: import("@lib/services/lib/HandlerUtils").CollectiveHandlerFunction<(nextSettings: ObsidianLiveSyncSettings, previousSettings: ObsidianLiveSyncSettings) => Promise<(Partial<ObsidianLiveSyncSettings> | void)[]>, any>; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
/**
|
/**
|
||||||
* Get the current settings.
|
* Get the current settings.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ export declare class BrowserAPIService<T extends ServiceContext> extends Injecta
|
|||||||
getCustomFetchHandler(): FetchHttpHandler;
|
getCustomFetchHandler(): FetchHttpHandler;
|
||||||
isMobile(): boolean;
|
isMobile(): boolean;
|
||||||
getAppID(): string;
|
getAppID(): string;
|
||||||
getSystemVaultName: import("../../lib/HandlerUtils").HandlerFunction<() => string, any>;
|
getSystemVaultName: import("../../lib/HandlerUtils").HandlerFunction<() => string, any>; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
getAppVersion(): string;
|
getAppVersion(): string;
|
||||||
getPluginVersion(): string;
|
getPluginVersion(): string;
|
||||||
getPlatform(): string;
|
getPlatform(): string;
|
||||||
@@ -44,8 +44,8 @@ export declare class BrowserAPIService<T extends ServiceContext> extends Injecta
|
|||||||
private executeCommand;
|
private executeCommand;
|
||||||
private refreshCommandStates;
|
private refreshCommandStates;
|
||||||
addCommand<TCommand extends ICommandCompat>(command: TCommand): TCommand;
|
addCommand<TCommand extends ICommandCompat>(command: TCommand): TCommand;
|
||||||
addRibbonIcon(icon: string, title: string, callback: (evt: MouseEvent) => any): HTMLElement;
|
addRibbonIcon(icon: string, title: string, callback: (evt: MouseEvent) => any): HTMLElement; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
registerWindow(type: string, factory: (leaf: any) => any): void;
|
registerWindow(type: string, factory: (leaf: any) => any): void; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
registerProtocolHandler(action: string, handler: (params: Record<string, string>) => any): void;
|
registerProtocolHandler(action: string, handler: (params: Record<string, string>) => any): void; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
addStatusBarItem(): HTMLElement | undefined;
|
addStatusBarItem(): HTMLElement | undefined;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -39,9 +39,9 @@ export declare class HeadlessAPIService<T extends ServiceContext> extends Inject
|
|||||||
getPlatform(): string;
|
getPlatform(): string;
|
||||||
getCrypto(): Crypto;
|
getCrypto(): Crypto;
|
||||||
addCommand<TCommand extends ICommandCompat>(command: TCommand): TCommand;
|
addCommand<TCommand extends ICommandCompat>(command: TCommand): TCommand;
|
||||||
addRibbonIcon(icon: string, title: string, callback: (evt: MouseEvent) => any): HTMLElement;
|
addRibbonIcon(icon: string, title: string, callback: (evt: MouseEvent) => any): HTMLElement; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
registerWindow(type: string, factory: (leaf: any) => any): void;
|
registerWindow(type: string, factory: (leaf: any) => any): void; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
registerProtocolHandler(action: string, handler: (params: Record<string, string>) => any): void;
|
registerProtocolHandler(action: string, handler: (params: Record<string, string>) => any): void; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
addStatusBarItem(): HTMLElement | undefined;
|
addStatusBarItem(): HTMLElement | undefined;
|
||||||
private toSafeKeyPart;
|
private toSafeKeyPart;
|
||||||
private hash32;
|
private hash32;
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
import { APIService } from "@lib/services/base/APIService";
|
import { APIService } from "@lib/services/base/APIService";
|
||||||
import type { ServiceContext } from "@lib/services/base/ServiceBase";
|
import type { ServiceContext } from "@lib/services/base/ServiceBase";
|
||||||
export declare abstract class InjectableAPIService<T extends ServiceContext> extends APIService<T> {
|
export declare abstract class InjectableAPIService<T extends ServiceContext> extends APIService<T> {
|
||||||
addLog: import("@lib/services/lib/HandlerUtils").HandlerFunction<(message: unknown, level: import("octagonal-wheels/common/logger").LOG_LEVEL, key?: string) => void, any>;
|
addLog: import("@lib/services/lib/HandlerUtils").HandlerFunction<(message: unknown, level: import("octagonal-wheels/common/logger").LOG_LEVEL, key?: string) => void, any>; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
getPlatform(): string;
|
getPlatform(): string;
|
||||||
getCrypto(): Crypto;
|
getCrypto(): Crypto;
|
||||||
}
|
}
|
||||||
|
|||||||
+4
-4
@@ -2,10 +2,10 @@ import { AppLifecycleService } from "@lib/services/base/AppLifecycleService";
|
|||||||
import type { IAppLifecycleService } from "@lib/services/base/IService";
|
import type { IAppLifecycleService } from "@lib/services/base/IService";
|
||||||
import type { ServiceContext } from "@lib/services/base/ServiceBase";
|
import type { ServiceContext } from "@lib/services/base/ServiceBase";
|
||||||
export declare abstract class AppLifecycleServiceBase<T extends ServiceContext> extends AppLifecycleService<T> {
|
export declare abstract class AppLifecycleServiceBase<T extends ServiceContext> extends AppLifecycleService<T> {
|
||||||
askRestart: import("@lib/services/lib/HandlerUtils").HandlerFunction<(message?: string) => void, any>;
|
askRestart: import("@lib/services/lib/HandlerUtils").HandlerFunction<(message?: string) => void, any>; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
scheduleRestart: import("@lib/services/lib/HandlerUtils").HandlerFunction<() => void, any>;
|
scheduleRestart: import("@lib/services/lib/HandlerUtils").HandlerFunction<() => void, any>; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
isReloadingScheduled: import("@lib/services/lib/HandlerUtils").HandlerFunction<() => boolean, any>;
|
isReloadingScheduled: import("@lib/services/lib/HandlerUtils").HandlerFunction<() => boolean, any>; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
}
|
}
|
||||||
export declare abstract class InjectableAppLifecycleService<T extends ServiceContext = ServiceContext> extends AppLifecycleServiceBase<T> implements IAppLifecycleService {
|
export declare abstract class InjectableAppLifecycleService<T extends ServiceContext = ServiceContext> extends AppLifecycleServiceBase<T> implements IAppLifecycleService {
|
||||||
performRestart: import("@lib/services/lib/HandlerUtils").HandlerFunction<() => void, any>;
|
performRestart: import("@lib/services/lib/HandlerUtils").HandlerFunction<() => void, any>; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
}
|
}
|
||||||
|
|||||||
+7
-7
@@ -1,11 +1,11 @@
|
|||||||
import { ConflictService } from "@lib/services/base/ConflictService";
|
import { ConflictService } from "@lib/services/base/ConflictService";
|
||||||
import type { ServiceContext } from "@lib/services/base/ServiceBase";
|
import type { ServiceContext } from "@lib/services/base/ServiceBase";
|
||||||
export declare class InjectableConflictService<T extends ServiceContext> extends ConflictService<T> {
|
export declare class InjectableConflictService<T extends ServiceContext> extends ConflictService<T> {
|
||||||
queueCheckForIfOpen: import("@lib/services/lib/HandlerUtils").HandlerFunction<(path: import("../../../common/settingConstants").FilePathWithPrefix) => Promise<void>, any>;
|
queueCheckForIfOpen: import("@lib/services/lib/HandlerUtils").HandlerFunction<(path: import("../../../common/settingConstants").FilePathWithPrefix) => Promise<void>, any>; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
queueCheckFor: import("@lib/services/lib/HandlerUtils").HandlerFunction<(path: import("../../../common/settingConstants").FilePathWithPrefix) => Promise<void>, any>;
|
queueCheckFor: import("@lib/services/lib/HandlerUtils").HandlerFunction<(path: import("../../../common/settingConstants").FilePathWithPrefix) => Promise<void>, any>; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
ensureAllProcessed: import("@lib/services/lib/HandlerUtils").HandlerFunction<() => Promise<boolean>, any>;
|
ensureAllProcessed: import("@lib/services/lib/HandlerUtils").HandlerFunction<() => Promise<boolean>, any>; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
resolveByDeletingRevision: import("@lib/services/lib/HandlerUtils").HandlerFunction<(path: import("../../../common/settingConstants").FilePathWithPrefix, deleteRevision: string, title: string) => Promise<typeof import("../../../common/types").MISSING_OR_ERROR | typeof import("../../../common/types").AUTO_MERGED>, any>;
|
resolveByDeletingRevision: import("@lib/services/lib/HandlerUtils").HandlerFunction<(path: import("../../../common/settingConstants").FilePathWithPrefix, deleteRevision: string, title: string) => Promise<typeof import("../../../common/types").MISSING_OR_ERROR | typeof import("../../../common/types").AUTO_MERGED>, any>; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
resolve: import("@lib/services/lib/HandlerUtils").HandlerFunction<(filename: import("../../../common/settingConstants").FilePathWithPrefix) => Promise<void>, any>;
|
resolve: import("@lib/services/lib/HandlerUtils").HandlerFunction<(filename: import("../../../common/settingConstants").FilePathWithPrefix) => Promise<void>, any>; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
resolveByNewest: import("@lib/services/lib/HandlerUtils").HandlerFunction<(filename: import("../../../common/settingConstants").FilePathWithPrefix) => Promise<boolean>, any>;
|
resolveByNewest: import("@lib/services/lib/HandlerUtils").HandlerFunction<(filename: import("../../../common/settingConstants").FilePathWithPrefix) => Promise<boolean>, any>; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
resolveAllConflictedFilesByNewerOnes: import("@lib/services/lib/HandlerUtils").HandlerFunction<() => Promise<void>, any>;
|
resolveAllConflictedFilesByNewerOnes: import("@lib/services/lib/HandlerUtils").HandlerFunction<() => Promise<void>, any>; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-2
@@ -6,6 +6,6 @@ export declare class InjectableSettingService<T extends ServiceContext> extends
|
|||||||
protected setItem(key: string, value: string): void;
|
protected setItem(key: string, value: string): void;
|
||||||
protected getItem(key: string): string;
|
protected getItem(key: string): string;
|
||||||
protected deleteItem(key: string): void;
|
protected deleteItem(key: string): void;
|
||||||
saveData: import("@lib/services/lib/HandlerUtils").HandlerFunction<(data: ObsidianLiveSyncSettings) => Promise<void>, any>;
|
saveData: import("@lib/services/lib/HandlerUtils").HandlerFunction<(data: ObsidianLiveSyncSettings) => Promise<void>, any>; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
loadData: import("@lib/services/lib/HandlerUtils").HandlerFunction<() => Promise<ObsidianLiveSyncSettings | undefined>, any>;
|
loadData: import("@lib/services/lib/HandlerUtils").HandlerFunction<() => Promise<ObsidianLiveSyncSettings | undefined>, any>; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
import type { ServiceContext } from "@lib/services/base/ServiceBase";
|
import type { ServiceContext } from "@lib/services/base/ServiceBase";
|
||||||
import { TestService } from "@lib/services/base/TestService";
|
import { TestService } from "@lib/services/base/TestService";
|
||||||
export declare class InjectableTestService<T extends ServiceContext> extends TestService<T> {
|
export declare class InjectableTestService<T extends ServiceContext> extends TestService<T> {
|
||||||
addTestResult: import("@lib/services/lib/HandlerUtils").HandlerFunction<(name: string, key: string, result: boolean, summary?: string, message?: string) => void, any>;
|
addTestResult: import("@lib/services/lib/HandlerUtils").HandlerFunction<(name: string, key: string, result: boolean, summary?: string, message?: string) => void, any>; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
}
|
}
|
||||||
|
|||||||
+5
-5
@@ -1,15 +1,15 @@
|
|||||||
import type { ServiceContext } from "@lib/services/base/ServiceBase";
|
import type { ServiceContext } from "@lib/services/base/ServiceBase";
|
||||||
import { TweakValueService } from "@lib/services/base/TweakValueService";
|
import { TweakValueService } from "@lib/services/base/TweakValueService";
|
||||||
export declare class InjectableTweakValueService<T extends ServiceContext> extends TweakValueService<T> {
|
export declare class InjectableTweakValueService<T extends ServiceContext> extends TweakValueService<T> {
|
||||||
fetchRemotePreferred: import("@lib/services/lib/HandlerUtils").HandlerFunction<(trialSetting: import("../../../common/types").RemoteDBSettings) => Promise<import("../../../common/types").TweakValues | false>, any>;
|
fetchRemotePreferred: import("@lib/services/lib/HandlerUtils").HandlerFunction<(trialSetting: import("../../../common/types").RemoteDBSettings) => Promise<import("../../../common/types").TweakValues | false>, any>; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
checkAndAskResolvingMismatched: import("@lib/services/lib/HandlerUtils").HandlerFunction<(preferred: Partial<import("../../../common/types").TweakValues>) => Promise<[import("../../../common/types").TweakValues | boolean, boolean]>, any>;
|
checkAndAskResolvingMismatched: import("@lib/services/lib/HandlerUtils").HandlerFunction<(preferred: Partial<import("../../../common/types").TweakValues>) => Promise<[import("../../../common/types").TweakValues | boolean, boolean]>, any>; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
askResolvingMismatched: import("@lib/services/lib/HandlerUtils").HandlerFunction<(preferredSource: import("../../../common/types").TweakValues) => Promise<"OK" | "CHECKAGAIN" | "IGNORE">, any>;
|
askResolvingMismatched: import("@lib/services/lib/HandlerUtils").HandlerFunction<(preferredSource: import("../../../common/types").TweakValues) => Promise<"OK" | "CHECKAGAIN" | "IGNORE">, any>; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
checkAndAskUseRemoteConfiguration: import("@lib/services/lib/HandlerUtils").HandlerFunction<(settings: import("../../../common/types").RemoteDBSettings) => Promise<{
|
checkAndAskUseRemoteConfiguration: import("@lib/services/lib/HandlerUtils").HandlerFunction<(settings: import("../../../common/types").RemoteDBSettings) => Promise<{
|
||||||
result: false | import("../../../common/types").TweakValues;
|
result: false | import("../../../common/types").TweakValues;
|
||||||
requireFetch: boolean;
|
requireFetch: boolean;
|
||||||
}>, any>;
|
}>, any>; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
askUseRemoteConfiguration: import("@lib/services/lib/HandlerUtils").HandlerFunction<(trialSetting: import("../../../common/types").RemoteDBSettings, preferred: import("../../../common/types").TweakValues) => Promise<{
|
askUseRemoteConfiguration: import("@lib/services/lib/HandlerUtils").HandlerFunction<(trialSetting: import("../../../common/types").RemoteDBSettings, preferred: import("../../../common/types").TweakValues) => Promise<{
|
||||||
result: false | import("../../../common/types").TweakValues;
|
result: false | import("../../../common/types").TweakValues;
|
||||||
requireFetch: boolean;
|
requireFetch: boolean;
|
||||||
}>, any>;
|
}>, any>; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-2
@@ -3,7 +3,7 @@ import { VaultService } from "@lib/services/base/VaultService";
|
|||||||
export declare abstract class InjectableVaultService<T extends ServiceContext> extends VaultService<T> {
|
export declare abstract class InjectableVaultService<T extends ServiceContext> extends VaultService<T> {
|
||||||
}
|
}
|
||||||
export declare class InjectableVaultServiceCompat<T extends ServiceContext> extends InjectableVaultService<T> {
|
export declare class InjectableVaultServiceCompat<T extends ServiceContext> extends InjectableVaultService<T> {
|
||||||
isStorageInsensitive: import("@lib/services/lib/HandlerUtils").HandlerFunction<() => boolean, any>;
|
isStorageInsensitive: import("@lib/services/lib/HandlerUtils").HandlerFunction<() => boolean, any>; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
getActiveFilePath: import("@lib/services/lib/HandlerUtils").HandlerFunction<() => import("../../../common/settingConstants").FilePath | undefined, any>;
|
getActiveFilePath: import("@lib/services/lib/HandlerUtils").HandlerFunction<() => import("../../../common/settingConstants").FilePath | undefined, any>; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
isValidPath(path: string): boolean;
|
isValidPath(path: string): boolean;
|
||||||
}
|
}
|
||||||
|
|||||||
+26
-26
@@ -64,7 +64,7 @@ export interface DispatchHandler<T extends unknown[], U> extends DispatcherHandl
|
|||||||
/**
|
/**
|
||||||
* A binder that allows assigning and invoking a single handler function.
|
* A binder that allows assigning and invoking a single handler function.
|
||||||
*/
|
*/
|
||||||
export declare class Binder<T extends HandlerFunc<any, any>> implements BinderHandler<Parameters<T>, ReturnType<T>>, InvokableHandler<Parameters<T>, ReturnType<T>> {
|
export declare class Binder<T extends HandlerFunc<any, any>> implements BinderHandler<Parameters<T>, ReturnType<T>>, InvokableHandler<Parameters<T>, ReturnType<T>> { // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
private _name;
|
private _name;
|
||||||
/**
|
/**
|
||||||
* Creates a new Binder instance.
|
* Creates a new Binder instance.
|
||||||
@@ -89,7 +89,7 @@ export declare class Binder<T extends HandlerFunc<any, any>> implements BinderHa
|
|||||||
* A binder that allows assigning and invoking a single handler function asynchronously.
|
* A binder that allows assigning and invoking a single handler function asynchronously.
|
||||||
* The invocation will wait until a handler is assigned.
|
* The invocation will wait until a handler is assigned.
|
||||||
*/
|
*/
|
||||||
export declare class LazyBinder<T extends HandlerFunc<any, any>> implements BinderHandler<Parameters<T>, ReturnType<T>>, InvokableHandler<Parameters<T>, Promise<Awaited<ReturnType<T>>>> {
|
export declare class LazyBinder<T extends HandlerFunc<any, any>> implements BinderHandler<Parameters<T>, ReturnType<T>>, InvokableHandler<Parameters<T>, Promise<Awaited<ReturnType<T>>>> { // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
private _name;
|
private _name;
|
||||||
private _callbackPromise;
|
private _callbackPromise;
|
||||||
private _callback;
|
private _callback;
|
||||||
@@ -110,7 +110,7 @@ export declare class LazyBinder<T extends HandlerFunc<any, any>> implements Bind
|
|||||||
/**
|
/**
|
||||||
* A multi-binder that allows adding and removing multiple handler functions.
|
* A multi-binder that allows adding and removing multiple handler functions.
|
||||||
*/
|
*/
|
||||||
export declare class MultiBinder<T extends HandlerFunc<any, any>> implements MultiRegisterHandler<Parameters<T>, ReturnType<T>> {
|
export declare class MultiBinder<T extends HandlerFunc<any, any>> implements MultiRegisterHandler<Parameters<T>, ReturnType<T>> { // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
protected _name: string;
|
protected _name: string;
|
||||||
/**
|
/**
|
||||||
* Creates a new MultiBinder instance.
|
* Creates a new MultiBinder instance.
|
||||||
@@ -218,7 +218,7 @@ export declare class FirstResultHandler<T extends unknown[], U> extends MultiBin
|
|||||||
/**
|
/**
|
||||||
* A function type that can be used as a handler with assignable functionality.
|
* A function type that can be used as a handler with assignable functionality.
|
||||||
*/
|
*/
|
||||||
export interface HandlerFunction<TFunc extends (...args: any[]) => U | Promise<U>, U = any> {
|
export interface HandlerFunction<TFunc extends (...args: any[]) => U | Promise<U>, U = any> { // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
/**
|
/**
|
||||||
* Invokes the handler function with the provided arguments.
|
* Invokes the handler function with the provided arguments.
|
||||||
*/
|
*/
|
||||||
@@ -234,7 +234,7 @@ export interface HandlerFunction<TFunc extends (...args: any[]) => U | Promise<U
|
|||||||
/**
|
/**
|
||||||
* A function type that can be used as a handler with assignable functionality.
|
* A function type that can be used as a handler with assignable functionality.
|
||||||
*/
|
*/
|
||||||
export interface LazyHandlerFunction<TFunc extends (...args: any[]) => U | Promise<U>, U = any> {
|
export interface LazyHandlerFunction<TFunc extends (...args: any[]) => U | Promise<U>, U = any> { // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
/**
|
/**
|
||||||
* Invokes the handler function with the provided arguments.
|
* Invokes the handler function with the provided arguments.
|
||||||
*/
|
*/
|
||||||
@@ -250,7 +250,7 @@ export interface LazyHandlerFunction<TFunc extends (...args: any[]) => U | Promi
|
|||||||
/**
|
/**
|
||||||
* A function type that can be used as a multiple handler with add/remove functionality.
|
* A function type that can be used as a multiple handler with add/remove functionality.
|
||||||
*/
|
*/
|
||||||
export interface MultipleHandlerFunction<TFunc extends (...args: any[]) => U | Promise<U>, U = any> {
|
export interface MultipleHandlerFunction<TFunc extends (...args: any[]) => U | Promise<U>, U = any> { // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
/**
|
/**
|
||||||
* Invokes the handler function with the provided arguments.
|
* Invokes the handler function with the provided arguments.
|
||||||
*/
|
*/
|
||||||
@@ -271,11 +271,11 @@ export interface MultipleHandlerFunction<TFunc extends (...args: any[]) => U | P
|
|||||||
/**
|
/**
|
||||||
* A function type that can be used as a value-collecting handler with add/remove functionality.
|
* A function type that can be used as a value-collecting handler with add/remove functionality.
|
||||||
*/
|
*/
|
||||||
export type CollectorFunction<TFunc extends (...args: any[]) => U | Promise<U>, U = any> = (...args: Parameters<TFunc>) => Promise<Awaited<U>>;
|
export type CollectorFunction<TFunc extends (...args: any[]) => U | Promise<U>, U = any> = (...args: Parameters<TFunc>) => Promise<Awaited<U>>; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
/**
|
/**
|
||||||
* A Handler function type that can have multiple handlers added or removed, and collects their results into an array.
|
* A Handler function type that can have multiple handlers added or removed, and collects their results into an array.
|
||||||
*/
|
*/
|
||||||
export interface CollectiveHandlerFunction<TFunc extends (...args: any[]) => U[] | Promise<U[]>, U = any> {
|
export interface CollectiveHandlerFunction<TFunc extends (...args: any[]) => U[] | Promise<U[]>, U = any> { // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
/**
|
/**
|
||||||
* Invokes the handler function with the provided arguments.
|
* Invokes the handler function with the provided arguments.
|
||||||
*/
|
*/
|
||||||
@@ -293,7 +293,7 @@ export interface CollectiveHandlerFunction<TFunc extends (...args: any[]) => U[]
|
|||||||
*/
|
*/
|
||||||
removeHandler: (callback: CollectorFunction<TFunc>) => void;
|
removeHandler: (callback: CollectorFunction<TFunc>) => void;
|
||||||
}
|
}
|
||||||
export interface BooleanMultipleHandlerFunction<TFunc extends (...args: any[]) => boolean | Promise<boolean>> {
|
export interface BooleanMultipleHandlerFunction<TFunc extends (...args: any[]) => boolean | Promise<boolean>> { // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
/**
|
/**
|
||||||
* Invokes the handler function with the provided arguments.
|
* Invokes the handler function with the provided arguments.
|
||||||
*/
|
*/
|
||||||
@@ -315,16 +315,16 @@ export interface MultiBinderInstance<T extends unknown[], U> extends InvokableHa
|
|||||||
}
|
}
|
||||||
export interface BooleanMultiBinderInstance<T extends unknown[]> extends InvokableBooleanHandler<T>, MultiRegisterHandler<T, boolean> {
|
export interface BooleanMultiBinderInstance<T extends unknown[]> extends InvokableBooleanHandler<T>, MultiRegisterHandler<T, boolean> {
|
||||||
}
|
}
|
||||||
export declare function allFunction<TFunc extends (...args: any[]) => Promise<boolean>>(name?: string): BooleanMultipleHandlerFunction<TFunc>;
|
export declare function allFunction<TFunc extends (...args: any[]) => Promise<boolean>>(name?: string): BooleanMultipleHandlerFunction<TFunc>; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
export declare function bailFirstFailureFunction<TFunc extends (...args: any[]) => Promise<boolean>>(name?: string): BooleanMultipleHandlerFunction<TFunc>;
|
export declare function bailFirstFailureFunction<TFunc extends (...args: any[]) => Promise<boolean>>(name?: string): BooleanMultipleHandlerFunction<TFunc>; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
export declare function allParallelFunction<TFunc extends (...args: any[]) => Promise<boolean>>(name?: string): BooleanMultipleHandlerFunction<TFunc>;
|
export declare function allParallelFunction<TFunc extends (...args: any[]) => Promise<boolean>>(name?: string): BooleanMultipleHandlerFunction<TFunc>; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
export declare function anySuccessFunction<TFunc extends (...args: any[]) => Promise<boolean>>(name?: string): BooleanMultipleHandlerFunction<TFunc>;
|
export declare function anySuccessFunction<TFunc extends (...args: any[]) => Promise<boolean>>(name?: string): BooleanMultipleHandlerFunction<TFunc>; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
export declare function firstResultFunction<TFunc extends (...args: any[]) => Promise<any>>(name?: string): MultipleHandlerFunction<TFunc>;
|
export declare function firstResultFunction<TFunc extends (...args: any[]) => Promise<any>>(name?: string): MultipleHandlerFunction<TFunc>; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
export declare function dispatchParallelFunction<TFunc extends (...args: any[]) => Promise<any[]>>(name?: string): CollectiveHandlerFunction<TFunc>;
|
export declare function dispatchParallelFunction<TFunc extends (...args: any[]) => Promise<any[]>>(name?: string): CollectiveHandlerFunction<TFunc>; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
export declare function bindableFunction<TFunc extends (...args: any[]) => any>(name?: string): HandlerFunction<TFunc>;
|
export declare function bindableFunction<TFunc extends (...args: any[]) => any>(name?: string): HandlerFunction<TFunc>; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
export declare function lazyBindableFunction<TFunc extends (...args: any[]) => any>(name?: string): LazyHandlerFunction<TFunc>;
|
export declare function lazyBindableFunction<TFunc extends (...args: any[]) => any>(name?: string): LazyHandlerFunction<TFunc>; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
type FunctionKeys<T> = Extract<{
|
type FunctionKeys<T> = Extract<{
|
||||||
[K in keyof T]: T[K] extends (...args: any[]) => any ? K : never;
|
[K in keyof T]: T[K] extends (...args: any[]) => any ? K : never; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
}[keyof T], string>;
|
}[keyof T], string>;
|
||||||
export declare function handlers<T extends object>(): {
|
export declare function handlers<T extends object>(): {
|
||||||
/**
|
/**
|
||||||
@@ -332,43 +332,43 @@ export declare function handlers<T extends object>(): {
|
|||||||
* @param name
|
* @param name
|
||||||
* @returns
|
* @returns
|
||||||
*/
|
*/
|
||||||
all<K extends FunctionKeys<T>>(name: K): BooleanMultipleHandlerFunction<Extract<T[K], (...args: any[]) => Promise<boolean>>>;
|
all<K extends FunctionKeys<T>>(name: K): BooleanMultipleHandlerFunction<Extract<T[K], (...args: any[]) => Promise<boolean>>>; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
/**
|
/**
|
||||||
* Create a handler that invokes all added handler functions in parallel and returns true only if all return true.
|
* Create a handler that invokes all added handler functions in parallel and returns true only if all return true.
|
||||||
* @param name
|
* @param name
|
||||||
* @returns
|
* @returns
|
||||||
*/
|
*/
|
||||||
allParallel<K extends FunctionKeys<T>>(name: K): BooleanMultipleHandlerFunction<Extract<T[K], (...args: any[]) => Promise<boolean>>>;
|
allParallel<K extends FunctionKeys<T>>(name: K): BooleanMultipleHandlerFunction<Extract<T[K], (...args: any[]) => Promise<boolean>>>; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
/**
|
/**
|
||||||
* Create a handler that invokes all added handler functions sequentially until one returns false.
|
* Create a handler that invokes all added handler functions sequentially until one returns false.
|
||||||
* @param name
|
* @param name
|
||||||
* @returns
|
* @returns
|
||||||
*/
|
*/
|
||||||
bailFirstFailure<K extends FunctionKeys<T>>(name: K): BooleanMultipleHandlerFunction<Extract<T[K], (...args: any[]) => Promise<boolean>>>;
|
bailFirstFailure<K extends FunctionKeys<T>>(name: K): BooleanMultipleHandlerFunction<Extract<T[K], (...args: any[]) => Promise<boolean>>>; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
/**
|
/**
|
||||||
* Create a handler that invokes all added handler functions sequentially until one returns true.
|
* Create a handler that invokes all added handler functions sequentially until one returns true.
|
||||||
* @param name
|
* @param name
|
||||||
* @returns
|
* @returns
|
||||||
*/
|
*/
|
||||||
anySuccess<K extends FunctionKeys<T>>(name: K): BooleanMultipleHandlerFunction<Extract<T[K], (...args: any[]) => Promise<boolean>>>;
|
anySuccess<K extends FunctionKeys<T>>(name: K): BooleanMultipleHandlerFunction<Extract<T[K], (...args: any[]) => Promise<boolean>>>; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
/**
|
/**
|
||||||
* Create a handler that invokes all added handler functions sequentially until one returns a non-falsy value.
|
* Create a handler that invokes all added handler functions sequentially until one returns a non-falsy value.
|
||||||
* @param name
|
* @param name
|
||||||
* @returns
|
* @returns
|
||||||
*/
|
*/
|
||||||
firstResult<K extends FunctionKeys<T>>(name: K): MultipleHandlerFunction<Extract<T[K], (...args: any[]) => Promise<any>>>;
|
firstResult<K extends FunctionKeys<T>>(name: K): MultipleHandlerFunction<Extract<T[K], (...args: any[]) => Promise<any>>>; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
/**
|
/**
|
||||||
* Create a handler that invokes all added handler functions in parallel.
|
* Create a handler that invokes all added handler functions in parallel.
|
||||||
* @param name
|
* @param name
|
||||||
* @returns
|
* @returns
|
||||||
*/
|
*/
|
||||||
dispatchParallel<K extends FunctionKeys<T>>(name: K): CollectiveHandlerFunction<Extract<T[K], (...args: any[]) => Promise<any[]>>>;
|
dispatchParallel<K extends FunctionKeys<T>>(name: K): CollectiveHandlerFunction<Extract<T[K], (...args: any[]) => Promise<any[]>>>; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
/**
|
/**
|
||||||
* Create a binder handler that can assign a single handler function.
|
* Create a binder handler that can assign a single handler function.
|
||||||
* @param name
|
* @param name
|
||||||
* @returns
|
* @returns
|
||||||
*/
|
*/
|
||||||
binder<K extends FunctionKeys<T>>(name: K): HandlerFunction<Extract<T[K], (...args: any[]) => any>>;
|
binder<K extends FunctionKeys<T>>(name: K): HandlerFunction<Extract<T[K], (...args: any[]) => any>>; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
lazyBinder<K extends FunctionKeys<T>>(name: K): LazyHandlerFunction<Extract<T[K], (...args: any[]) => any>>;
|
lazyBinder<K extends FunctionKeys<T>>(name: K): LazyHandlerFunction<Extract<T[K], (...args: any[]) => any>>; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
};
|
};
|
||||||
export {};
|
export {};
|
||||||
|
|||||||
+2
-2
@@ -17,9 +17,9 @@ export declare class MiddlewareManager<TArgs extends unknown[], TResult> {
|
|||||||
invoke(...args: TArgs): Promise<TResult>;
|
invoke(...args: TArgs): Promise<TResult>;
|
||||||
}
|
}
|
||||||
type FunctionKeys<T> = {
|
type FunctionKeys<T> = {
|
||||||
[K in keyof T]: T[K] extends (...args: any[]) => any ? K : never;
|
[K in keyof T]: T[K] extends (...args: any[]) => any ? K : never; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
}[keyof T];
|
}[keyof T];
|
||||||
export declare function middlewares<T extends Record<keyof T, (...args: any[]) => any>>(): {
|
export declare function middlewares<T extends Record<keyof T, (...args: any[]) => any>>(): { // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
useMiddleware<K extends FunctionKeys<T>>(key: K): {
|
useMiddleware<K extends FunctionKeys<T>>(key: K): {
|
||||||
use: (priority: number, func: MiddlewareFunc<Parameters<T[K]>, Awaited<ReturnType<T[K]>>>) => () => void;
|
use: (priority: number, func: MiddlewareFunc<Parameters<T[K]>, Awaited<ReturnType<T[K]>>>) => () => void;
|
||||||
invoke: (...args: Parameters<T[K]>) => Promise<Awaited<ReturnType<T[K]>>>;
|
invoke: (...args: Parameters<T[K]>) => Promise<Awaited<ReturnType<T[K]>>>;
|
||||||
|
|||||||
+3
-3
@@ -6,9 +6,9 @@ export declare abstract class AbstractModule<T extends LiveSyncBaseCore<ServiceC
|
|||||||
_log: (msg: unknown, level?: import("octagonal-wheels/common/logger").LOG_LEVEL, key?: string) => void;
|
_log: (msg: unknown, level?: import("octagonal-wheels/common/logger").LOG_LEVEL, key?: string) => void;
|
||||||
get services(): import("../lib/src/services/InjectableServices").InjectableServiceHub<ServiceContext>;
|
get services(): import("../lib/src/services/InjectableServices").InjectableServiceHub<ServiceContext>;
|
||||||
addCommand: <TCommand extends import("../lib/src/services/base/IService").ICommandCompat>(command: TCommand) => TCommand;
|
addCommand: <TCommand extends import("../lib/src/services/base/IService").ICommandCompat>(command: TCommand) => TCommand;
|
||||||
registerView: (type: string, factory: (leaf: any) => any) => void;
|
registerView: (type: string, factory: (leaf: any) => any) => void; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
addRibbonIcon: (icon: string, title: string, callback: (evt: MouseEvent) => any) => HTMLElement;
|
addRibbonIcon: (icon: string, title: string, callback: (evt: MouseEvent) => any) => HTMLElement; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
registerObsidianProtocolHandler: (action: string, handler: (params: Record<string, string>) => any) => void;
|
registerObsidianProtocolHandler: (action: string, handler: (params: Record<string, string>) => any) => void; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
get localDatabase(): import("../lib/src/pouchdb/LiveSyncLocalDB").LiveSyncLocalDB;
|
get localDatabase(): import("../lib/src/pouchdb/LiveSyncLocalDB").LiveSyncLocalDB;
|
||||||
get settings(): import("../lib/src/common/types").ObsidianLiveSyncSettings;
|
get settings(): import("../lib/src/common/types").ObsidianLiveSyncSettings;
|
||||||
set settings(value: import("../lib/src/common/types").ObsidianLiveSyncSettings);
|
set settings(value: import("../lib/src/common/types").ObsidianLiveSyncSettings);
|
||||||
|
|||||||
Vendored
+5
-5
@@ -4,7 +4,7 @@ export type OverridableFunctionsKeys<T> = {
|
|||||||
[K in keyof T as K extends `$${string}` ? K : never]: T[K];
|
[K in keyof T as K extends `$${string}` ? K : never]: T[K];
|
||||||
};
|
};
|
||||||
export type ChainableExecuteFunction<T> = {
|
export type ChainableExecuteFunction<T> = {
|
||||||
[K in keyof T as K extends `$${string}` ? T[K] extends (...args: any) => ChainableFunctionResult ? K : never : never]: T[K];
|
[K in keyof T as K extends `$${string}` ? T[K] extends (...args: any) => ChainableFunctionResult ? K : never : never]: T[K]; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
};
|
};
|
||||||
export type ICoreModuleBase = OverridableFunctionsKeys<LiveSyncCore>;
|
export type ICoreModuleBase = OverridableFunctionsKeys<LiveSyncCore>;
|
||||||
export type ICoreModule = Prettify<Partial<ICoreModuleBase>>;
|
export type ICoreModule = Prettify<Partial<ICoreModuleBase>>;
|
||||||
@@ -12,16 +12,16 @@ export type CoreModuleKeys = keyof ICoreModule;
|
|||||||
export type ChainableFunctionResult = Promise<boolean | undefined | string> | Promise<boolean | undefined> | Promise<boolean> | Promise<void>;
|
export type ChainableFunctionResult = Promise<boolean | undefined | string> | Promise<boolean | undefined> | Promise<boolean> | Promise<void>;
|
||||||
export type ChainableFunctionResultOrAll = Promise<boolean | undefined | string | void>;
|
export type ChainableFunctionResultOrAll = Promise<boolean | undefined | string | void>;
|
||||||
type AllExecuteFunction<T> = {
|
type AllExecuteFunction<T> = {
|
||||||
[K in keyof T as K extends `$all${string}` ? T[K] extends (...args: any[]) => ChainableFunctionResultOrAll ? K : never : never]: T[K];
|
[K in keyof T as K extends `$all${string}` ? T[K] extends (...args: any[]) => ChainableFunctionResultOrAll ? K : never : never]: T[K]; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
};
|
};
|
||||||
type EveryExecuteFunction<T> = {
|
type EveryExecuteFunction<T> = {
|
||||||
[K in keyof T as K extends `$every${string}` ? T[K] extends (...args: any[]) => ChainableFunctionResult ? K : never : never]: T[K];
|
[K in keyof T as K extends `$every${string}` ? T[K] extends (...args: any[]) => ChainableFunctionResult ? K : never : never]: T[K]; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
};
|
};
|
||||||
type AnyExecuteFunction<T> = {
|
type AnyExecuteFunction<T> = {
|
||||||
[K in keyof T as K extends `$any${string}` ? T[K] extends (...args: any[]) => ChainableFunctionResult ? K : never : never]: T[K];
|
[K in keyof T as K extends `$any${string}` ? T[K] extends (...args: any[]) => ChainableFunctionResult ? K : never : never]: T[K]; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
};
|
};
|
||||||
type InjectableFunction<T> = {
|
type InjectableFunction<T> = {
|
||||||
[K in keyof T as K extends `$$${string}` ? (T[K] extends (...args: any[]) => any ? K : never) : never]: T[K];
|
[K in keyof T as K extends `$$${string}` ? (T[K] extends (...args: any[]) => any ? K : never) : never]: T[K]; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
};
|
};
|
||||||
export type AllExecuteProps = AllExecuteFunction<LiveSyncCore>;
|
export type AllExecuteProps = AllExecuteFunction<LiveSyncCore>;
|
||||||
export type EveryExecuteProps = EveryExecuteFunction<LiveSyncCore>;
|
export type EveryExecuteProps = EveryExecuteFunction<LiveSyncCore>;
|
||||||
|
|||||||
@@ -4,9 +4,9 @@ import { SvelteItemView } from "@/common/SvelteItemView.ts";
|
|||||||
export declare const VIEW_TYPE_GLOBAL_HISTORY = "global-history";
|
export declare const VIEW_TYPE_GLOBAL_HISTORY = "global-history";
|
||||||
export declare class GlobalHistoryView extends SvelteItemView {
|
export declare class GlobalHistoryView extends SvelteItemView {
|
||||||
instantiateComponent(target: HTMLElement): {
|
instantiateComponent(target: HTMLElement): {
|
||||||
$on?(type: string, callback: (e: any) => void): () => void;
|
$on?(type: string, callback: (e: any) => void): () => void; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
$set?(props: Partial<Record<string, any>>): void;
|
$set?(props: Partial<Record<string, any>>): void; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
} & Record<string, any>;
|
} & Record<string, any>; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
plugin: ObsidianLiveSyncPlugin;
|
plugin: ObsidianLiveSyncPlugin;
|
||||||
icon: string;
|
icon: string;
|
||||||
title: string;
|
title: string;
|
||||||
|
|||||||
+3
-3
@@ -4,9 +4,9 @@ import { SvelteItemView } from "@/common/SvelteItemView.ts";
|
|||||||
export declare const VIEW_TYPE_LOG = "log-log";
|
export declare const VIEW_TYPE_LOG = "log-log";
|
||||||
export declare class LogPaneView extends SvelteItemView {
|
export declare class LogPaneView extends SvelteItemView {
|
||||||
instantiateComponent(target: HTMLElement): {
|
instantiateComponent(target: HTMLElement): {
|
||||||
$on?(type: string, callback: (e: any) => void): () => void;
|
$on?(type: string, callback: (e: any) => void): () => void; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
$set?(props: Partial<Record<string, any>>): void;
|
$set?(props: Partial<Record<string, any>>): void; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
} & Record<string, any>;
|
} & Record<string, any>; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
plugin: ObsidianLiveSyncPlugin;
|
plugin: ObsidianLiveSyncPlugin;
|
||||||
icon: string;
|
icon: string;
|
||||||
title: string;
|
title: string;
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ export declare class LiveSyncSetting extends Setting {
|
|||||||
isHidden?: boolean;
|
isHidden?: boolean;
|
||||||
isAdvanced?: boolean;
|
isAdvanced?: boolean;
|
||||||
} | undefined;
|
} | undefined;
|
||||||
autoWireComponent(component: ValueComponent<any>, conf?: ConfigurationItem, opt?: AutoWireOption): void;
|
autoWireComponent(component: ValueComponent<any>, conf?: ConfigurationItem, opt?: AutoWireOption): void; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
commitValue<T extends AllSettingItemKey>(value: AllSettings[T]): Promise<void>;
|
commitValue<T extends AllSettingItemKey>(value: AllSettings[T]): Promise<void>;
|
||||||
autoWireText(key: AllStringItemKey, opt?: AutoWireOption): this;
|
autoWireText(key: AllStringItemKey, opt?: AutoWireOption): this;
|
||||||
autoWireTextArea(key: AllStringItemKey, opt?: AutoWireOption): this;
|
autoWireTextArea(key: AllStringItemKey, opt?: AutoWireOption): this;
|
||||||
|
|||||||
+1
-1
@@ -58,7 +58,7 @@ export declare class ObsidianLiveSyncSettingTab extends PluginSettingTab {
|
|||||||
isConfiguredAs(key: AllBooleanItemKey, value: boolean): boolean;
|
isConfiguredAs(key: AllBooleanItemKey, value: boolean): boolean;
|
||||||
settingComponents: Setting[];
|
settingComponents: Setting[];
|
||||||
controlledElementFunc: UpdateFunction[];
|
controlledElementFunc: UpdateFunction[];
|
||||||
onSavedHandlers: OnSavedHandler<any>[];
|
onSavedHandlers: OnSavedHandler<any>[]; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
inWizard: boolean;
|
inWizard: boolean;
|
||||||
constructor(app: App, plugin: ObsidianLiveSyncPlugin);
|
constructor(app: App, plugin: ObsidianLiveSyncPlugin);
|
||||||
testConnection(settingOverride?: Partial<ObsidianLiveSyncSettings>): Promise<void>;
|
testConnection(settingOverride?: Partial<ObsidianLiveSyncSettings>): Promise<void>;
|
||||||
|
|||||||
@@ -16,5 +16,5 @@ export declare class ObsidianVaultAdapter implements IVaultAdapter<TFile> {
|
|||||||
createBinary(path: string, data: ArrayBuffer, options?: UXDataWriteOptions): Promise<TFile>;
|
createBinary(path: string, data: ArrayBuffer, options?: UXDataWriteOptions): Promise<TFile>;
|
||||||
delete(file: TFile | TFolder, force?: boolean): Promise<void>;
|
delete(file: TFile | TFolder, force?: boolean): Promise<void>;
|
||||||
trash(file: TFile | TFolder, force?: boolean): Promise<void>;
|
trash(file: TFile | TFolder, force?: boolean): Promise<void>;
|
||||||
trigger(name: string, ...data: any[]): any;
|
trigger(name: string, ...data: any[]): any; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user