From edb857f50d8e56daf250e366604b0f1c1659d806 Mon Sep 17 00:00:00 2001 From: vorotamoroz Date: Fri, 12 Jun 2026 09:18:01 +0100 Subject: [PATCH] add eslint-disabled-line (testing) --- _types/src/LiveSyncBaseCore.d.ts | 2 +- .../features/ConfigSync/CmdConfigSync.d.ts | 2 +- .../P2PReplicator/P2PReplicatorPaneView.d.ts | 6 +-- .../P2PServerStatusPaneView.d.ts | 6 +-- .../src/lib/src/common/ConnectionString.d.ts | 2 +- _types/src/lib/src/common/LSError.d.ts | 2 +- _types/src/lib/src/common/context.d.ts | 10 ++-- _types/src/lib/src/dev/checks.d.ts | 4 +- .../lib/src/managers/LayeredChunkManager.d.ts | 2 +- .../lib/src/managers/StorageEventManager.d.ts | 16 +++--- _types/src/lib/src/pouchdb/compress.d.ts | 2 +- .../trystero/P2PReplicatorCore.d.ts | 2 +- .../src/replication/trystero/ProxiedDB.d.ts | 4 +- .../trystero/TrysteroReplicatorP2PClient.d.ts | 10 ++-- .../trystero/TrysteroReplicatorP2PServer.d.ts | 8 +-- .../lib/src/replication/trystero/types.d.ts | 12 ++--- .../src/serviceModules/FileAccessBase.d.ts | 14 ++--- .../serviceModules/ServiceFileAccessBase.d.ts | 2 +- .../adapters/IConversionAdapter.d.ts | 2 +- .../adapters/IVaultAdapter.d.ts | 2 +- .../lib/src/services/HeadlessServices.d.ts | 2 +- .../src/lib/src/services/base/APIService.d.ts | 6 +-- .../services/base/AppLifecycleService.d.ts | 4 +- .../src/services/base/ConflictService.d.ts | 4 +- .../src/lib/src/services/base/IService.d.ts | 12 ++--- .../src/services/base/KeyValueDBService.d.ts | 2 +- .../src/services/base/ReplicationService.d.ts | 2 +- .../src/services/base/ReplicatorService.d.ts | 2 +- .../lib/src/services/base/SettingService.d.ts | 2 +- .../implements/browser/BrowserAPIService.d.ts | 8 +-- .../headless/HeadlessAPIService.d.ts | 6 +-- .../injectable/InjectableAPIService.d.ts | 2 +- .../InjectableAppLifecycleService.d.ts | 8 +-- .../injectable/InjectableConflictService.d.ts | 14 ++--- .../injectable/InjectableSettingService.d.ts | 4 +- .../injectable/InjectableTestService.d.ts | 2 +- .../InjectableTweakValueService.d.ts | 10 ++-- .../injectable/InjectableVaultService.d.ts | 4 +- .../lib/src/services/lib/HandlerUtils.d.ts | 52 +++++++++---------- .../lib/src/services/lib/MiddlewareUtils.d.ts | 4 +- _types/src/modules/AbstractModule.d.ts | 6 +-- _types/src/modules/ModuleTypes.d.ts | 10 ++-- .../GlobalHistory/GlobalHistoryView.d.ts | 6 +-- .../src/modules/features/Log/LogPaneView.d.ts | 6 +-- .../SettingDialogue/LiveSyncSetting.d.ts | 2 +- .../ObsidianLiveSyncSettingTab.d.ts | 2 +- .../ObsidianVaultAdapter.d.ts | 2 +- 47 files changed, 147 insertions(+), 147 deletions(-) diff --git a/_types/src/LiveSyncBaseCore.d.ts b/_types/src/LiveSyncBaseCore.d.ts index 56caf94..71097b8 100644 --- a/_types/src/LiveSyncBaseCore.d.ts +++ b/_types/src/LiveSyncBaseCore.d.ts @@ -50,7 +50,7 @@ export declare class LiveSyncBaseCore(constructor: new (...args: any[]) => T): T; + getModule(constructor: new (...args: any[]) => T): T; // eslint-disable-line @typescript-eslint/no-explicit-any /** * Register a module to the plug-in. * @param module The module to register. diff --git a/_types/src/features/ConfigSync/CmdConfigSync.d.ts b/_types/src/features/ConfigSync/CmdConfigSync.d.ts index 3c2ab61..5ed87d9 100644 --- a/_types/src/features/ConfigSync/CmdConfigSync.d.ts +++ b/_types/src/features/ConfigSync/CmdConfigSync.d.ts @@ -91,7 +91,7 @@ export declare class ConfigSync extends LiveSyncCommands { showPluginSyncModal(): void; hidePluginSyncModal(): 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; getFileCategory(filePath: string): "CONFIG" | "THEME" | "SNIPPET" | "PLUGIN_MAIN" | "PLUGIN_ETC" | "PLUGIN_DATA" | ""; isTargetPath(filePath: string): boolean; diff --git a/_types/src/features/P2PSync/P2PReplicator/P2PReplicatorPaneView.d.ts b/_types/src/features/P2PSync/P2PReplicator/P2PReplicatorPaneView.d.ts index 762c664..3153a3f 100644 --- a/_types/src/features/P2PSync/P2PReplicator/P2PReplicatorPaneView.d.ts +++ b/_types/src/features/P2PSync/P2PReplicator/P2PReplicatorPaneView.d.ts @@ -22,7 +22,7 @@ export declare class P2PReplicatorPaneView extends SvelteItemView { getDisplayText(): string; onClose(): Promise; instantiateComponent(target: HTMLElement): { - $on?(type: string, callback: (e: any) => void): () => void; - $set?(props: Partial>): void; - } & Record; + $on?(type: string, callback: (e: any) => void): () => void; // eslint-disable-line @typescript-eslint/no-explicit-any + $set?(props: Partial>): void; // eslint-disable-line @typescript-eslint/no-explicit-any + } & Record; // eslint-disable-line @typescript-eslint/no-explicit-any } diff --git a/_types/src/features/P2PSync/P2PReplicator/P2PServerStatusPaneView.d.ts b/_types/src/features/P2PSync/P2PReplicator/P2PServerStatusPaneView.d.ts index f7296e2..25c6cd7 100644 --- a/_types/src/features/P2PSync/P2PReplicator/P2PServerStatusPaneView.d.ts +++ b/_types/src/features/P2PSync/P2PReplicator/P2PServerStatusPaneView.d.ts @@ -13,7 +13,7 @@ export declare class P2PServerStatusPaneView extends SvelteItemView { getViewType(): string; getDisplayText(): string; instantiateComponent(target: HTMLElement): { - $on?(type: string, callback: (e: any) => void): () => void; - $set?(props: Partial>): void; - } & Record; + $on?(type: string, callback: (e: any) => void): () => void; // eslint-disable-line @typescript-eslint/no-explicit-any + $set?(props: Partial>): void; // eslint-disable-line @typescript-eslint/no-explicit-any + } & Record; // eslint-disable-line @typescript-eslint/no-explicit-any } diff --git a/_types/src/lib/src/common/ConnectionString.d.ts b/_types/src/lib/src/common/ConnectionString.d.ts index 2bd83c6..cb86afc 100644 --- a/_types/src/lib/src/common/ConnectionString.d.ts +++ b/_types/src/lib/src/common/ConnectionString.d.ts @@ -10,7 +10,7 @@ export type RemoteConfigurationResult = { settings: P2PConnectionInfo; } | { type: "webdav"; - settings: any; + settings: any; // eslint-disable-line @typescript-eslint/no-explicit-any }; export declare class ConnectionStringParser { /** diff --git a/_types/src/lib/src/common/LSError.d.ts b/_types/src/lib/src/common/LSError.d.ts index 101cc04..e90f5ec 100644 --- a/_types/src/lib/src/common/LSError.d.ts +++ b/_types/src/lib/src/common/LSError.d.ts @@ -34,7 +34,7 @@ export declare class LiveSyncError extends Error implements ErrorWithCause { * @example * 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(error: unknown, errorClass: new (...args: any[]) => T): boolean; + static isCausedBy(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. * @param error The error to wrap. diff --git a/_types/src/lib/src/common/context.d.ts b/_types/src/lib/src/common/context.d.ts index 1f08de6..9497cdc 100644 --- a/_types/src/lib/src/common/context.d.ts +++ b/_types/src/lib/src/common/context.d.ts @@ -1,4 +1,4 @@ -declare class Context = object> { +declare class Context = object> { // eslint-disable-line @typescript-eslint/no-explicit-any _data: Partial; children: WeakRef>[]; parent?: Context; @@ -7,10 +7,10 @@ declare class Context = object> get(key: V): T[V] | undefined; setInGlobalContext(key: V, value: T[V]): void; setInNearestContext(key: V, value: T[V]): void; - spawnContext>(data?: V): Context; - _disposeChild(child: Context): void; + spawnContext>(data?: V): Context; // eslint-disable-line @typescript-eslint/no-explicit-any + _disposeChild(child: Context): void; // eslint-disable-line @typescript-eslint/no-explicit-any dispose(): void; } -export declare function getContext = object>(data?: T): Context; -export declare function getIndependentContext = object>(data?: T): Context; +export declare function getContext = object>(data?: T): Context; // eslint-disable-line @typescript-eslint/no-explicit-any +export declare function getIndependentContext = object>(data?: T): Context; // eslint-disable-line @typescript-eslint/no-explicit-any export {}; diff --git a/_types/src/lib/src/dev/checks.d.ts b/_types/src/lib/src/dev/checks.d.ts index 0da7cc5..5f46abf 100644 --- a/_types/src/lib/src/dev/checks.d.ts +++ b/_types/src/lib/src/dev/checks.d.ts @@ -1,5 +1,5 @@ type InstanceHaveOnBindFunction = { - onBindFunction: (core: any, services: any) => void; -} & Record; + onBindFunction: (core: any, services: any) => void; // eslint-disable-line @typescript-eslint/no-explicit-any +} & Record; // eslint-disable-line @typescript-eslint/no-explicit-any export declare function __$checkInstanceBinding(instance: T): void; export {}; diff --git a/_types/src/lib/src/managers/LayeredChunkManager.d.ts b/_types/src/lib/src/managers/LayeredChunkManager.d.ts index 6e272c0..d5be293 100644 --- a/_types/src/lib/src/managers/LayeredChunkManager.d.ts +++ b/_types/src/lib/src/managers/LayeredChunkManager.d.ts @@ -20,7 +20,7 @@ export declare class LayeredChunkManager { allocCount: number; derefCount: number; }; - addListener(type: K, listener: (this: LayeredChunkManager, ev: ChunkManagerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): () => void; + addListener(type: K, listener: (this: LayeredChunkManager, ev: ChunkManagerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): () => void; // eslint-disable-line @typescript-eslint/no-explicit-any emitEvent(type: K, detail: ChunkManagerEventMap[K]): void; protected abort: AbortController; protected offChangeHandler: ReturnType; diff --git a/_types/src/lib/src/managers/StorageEventManager.d.ts b/_types/src/lib/src/managers/StorageEventManager.d.ts index 750a51c..00aedf3 100644 --- a/_types/src/lib/src/managers/StorageEventManager.d.ts +++ b/_types/src/lib/src/managers/StorageEventManager.d.ts @@ -32,18 +32,18 @@ export interface StorageEventManagerBaseDependencies { /** * Type helper to extract the file type from a storage event manager adapter */ -export type ExtractFile = T extends IStorageEventManagerAdapter ? F : never; +export type ExtractFile = T extends IStorageEventManagerAdapter ? F : never; // eslint-disable-line @typescript-eslint/no-explicit-any /** * Type helper to extract the folder type from a storage event manager adapter */ -export type ExtractFolder = T extends IStorageEventManagerAdapter ? D : never; +export type ExtractFolder = T extends IStorageEventManagerAdapter ? D : never; // eslint-disable-line @typescript-eslint/no-explicit-any /** * Base class for storage event management * Uses adapter pattern for platform-specific implementations * * @template TAdapter - The storage event manager adapter type */ -export declare abstract class StorageEventManagerBase> extends StorageEventManager { +export declare abstract class StorageEventManagerBase> extends StorageEventManager { // eslint-disable-line @typescript-eslint/no-explicit-any _log: ReturnType; protected setting: SettingService; protected vaultService: IVaultService; @@ -125,11 +125,11 @@ export declare abstract class StorageEventManagerBase; } diff --git a/_types/src/lib/src/pouchdb/compress.d.ts b/_types/src/lib/src/pouchdb/compress.d.ts index e4a96fe..5dacc99 100644 --- a/_types/src/lib/src/pouchdb/compress.d.ts +++ b/_types/src/lib/src/pouchdb/compress.d.ts @@ -6,6 +6,6 @@ export declare const wrappedDeflate: (data: Uint8Array, opts: fflat export declare function _decompressText(compressed: string, _useUTF16?: boolean): Promise; export declare function compressDoc(doc: EntryDoc): Promise; export declare function decompressDoc(doc: EntryDoc): Promise; -export declare function wrapFflateFunc(func: (data: T, opts: U, cb: fflate.FlateCallback) => any): (data: T, opts: U) => Promise>; +export declare function wrapFflateFunc(func: (data: T, opts: U, cb: fflate.FlateCallback) => any): (data: T, opts: U) => Promise>; // eslint-disable-line @typescript-eslint/no-explicit-any export declare const replicationFilter: (db: PouchDB.Database, compress: boolean) => void; export declare const MARK_SHIFT_COMPRESSED = "\u000ELZ\u001D"; diff --git a/_types/src/lib/src/replication/trystero/P2PReplicatorCore.d.ts b/_types/src/lib/src/replication/trystero/P2PReplicatorCore.d.ts index e548609..913348b 100644 --- a/_types/src/lib/src/replication/trystero/P2PReplicatorCore.d.ts +++ b/_types/src/lib/src/replication/trystero/P2PReplicatorCore.d.ts @@ -1,6 +1,6 @@ import type { NecessaryServices } from "@lib/interfaces/ServiceModule"; 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. * Binds a LiveSyncTrysteroReplicator to the host's lifecycle events, diff --git a/_types/src/lib/src/replication/trystero/ProxiedDB.d.ts b/_types/src/lib/src/replication/trystero/ProxiedDB.d.ts index f519e98..09fffcd 100644 --- a/_types/src/lib/src/replication/trystero/ProxiedDB.d.ts +++ b/_types/src/lib/src/replication/trystero/ProxiedDB.d.ts @@ -3,9 +3,9 @@ export declare function createHostingDB(env: ReplicatorHostEnv): { info: () => Promise; changes: (options: PouchDB.Core.ChangesOptions) => PouchDB.Core.Changes; revsDiff: (diff: PouchDB.Core.RevisionDiffOptions) => Promise; - bulkDocs: (docs: PouchDB.Core.PostDocument[], options?: PouchDB.Core.BulkDocsOptions) => Promise<(PouchDB.Core.Response | PouchDB.Core.Error)[]>; + bulkDocs: (docs: PouchDB.Core.PostDocument[], 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>; - put: (doc: PouchDB.Core.PutDocument, options?: PouchDB.Core.PutOptions) => Promise; + put: (doc: PouchDB.Core.PutDocument, options?: PouchDB.Core.PutOptions) => Promise; // eslint-disable-line @typescript-eslint/no-explicit-any get: (id: string, options?: PouchDB.Core.GetOptions) => Promise; _stopHosting: () => void; }; diff --git a/_types/src/lib/src/replication/trystero/TrysteroReplicatorP2PClient.d.ts b/_types/src/lib/src/replication/trystero/TrysteroReplicatorP2PClient.d.ts index 49c1c6c..3f86f34 100644 --- a/_types/src/lib/src/replication/trystero/TrysteroReplicatorP2PClient.d.ts +++ b/_types/src/lib/src/replication/trystero/TrysteroReplicatorP2PClient.d.ts @@ -9,11 +9,11 @@ export declare class TrysteroReplicatorP2PClient { get remoteDB(): PouchDBShim; constructor(server: TrysteroReplicatorP2PServer, connectedPeerId: string); _bindRemoteDB(): PouchDBShim; - _sendRPC(type: string, args: any[], timeout?: number): Promise; + _sendRPC(type: string, args: any[], timeout?: number): Promise; // eslint-disable-line @typescript-eslint/no-explicit-any __onResponse(_data: unknown): void; - bindRemoteFunction(type: string, timeout?: number): (...args: T) => Promise; - invokeRemoteFunction(type: string, args: T, timeout?: number): Promise; - bindRemoteObjectFunctions, U extends keyof T>(key: U, timeout?: number): (...args: Parameters) => Promise>>; - invokeRemoteObjectFunction, U extends NonPrivateMethodKeys>(key: U, args: Parameters, timeout?: number): Promise>>; + bindRemoteFunction(type: string, timeout?: number): (...args: T) => Promise; // eslint-disable-line @typescript-eslint/no-explicit-any + invokeRemoteFunction(type: string, args: T, timeout?: number): Promise; // eslint-disable-line @typescript-eslint/no-explicit-any + bindRemoteObjectFunctions, U extends keyof T>(key: U, timeout?: number): (...args: Parameters) => Promise>>; // eslint-disable-line @typescript-eslint/no-explicit-any + invokeRemoteObjectFunction, U extends NonPrivateMethodKeys>(key: U, args: Parameters, timeout?: number): Promise>>; // eslint-disable-line @typescript-eslint/no-explicit-any close(): void; } diff --git a/_types/src/lib/src/replication/trystero/TrysteroReplicatorP2PServer.d.ts b/_types/src/lib/src/replication/trystero/TrysteroReplicatorP2PServer.d.ts index 553a2a5..9344910 100644 --- a/_types/src/lib/src/replication/trystero/TrysteroReplicatorP2PServer.d.ts +++ b/_types/src/lib/src/replication/trystero/TrysteroReplicatorP2PServer.d.ts @@ -57,9 +57,9 @@ export declare class TrysteroReplicatorP2PServer { _serverPeerId: string; _activeRoomId: string; ___send?: ActionSender; - assignedFunctions: Map any>; + assignedFunctions: Map any>; // eslint-disable-line @typescript-eslint/no-explicit-any clients: Map; - _bindingObjects: BindableObject[]; + _bindingObjects: BindableObject[]; // eslint-disable-line @typescript-eslint/no-explicit-any _rpcRoom?: RpcRoom; protected _peerStatusEventCleanup: (() => void) | undefined; protected _peerFailureAnalysisCleanup: (() => void) | undefined; @@ -99,8 +99,8 @@ export declare class TrysteroReplicatorP2PServer { private _onPeerLeave; activePeer: Map; onAfterJoinRoom(): void; - startService(bindings?: BindableObject[]): Promise; - start(bindings?: BindableObject[]): Promise; + startService(bindings?: BindableObject[]): Promise; // eslint-disable-line @typescript-eslint/no-explicit-any + start(bindings?: BindableObject[]): Promise; // 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. * @param type diff --git a/_types/src/lib/src/replication/trystero/types.d.ts b/_types/src/lib/src/replication/trystero/types.d.ts index 2683931..b13ebf2 100644 --- a/_types/src/lib/src/replication/trystero/types.d.ts +++ b/_types/src/lib/src/replication/trystero/types.d.ts @@ -9,10 +9,10 @@ export type DIRECTION_RESPONSE = typeof DIRECTION_RESPONSE; export declare const DEFAULT_RPC_TIMEOUT = 30000; export declare const BULK_GET_RPC_TIMEOUT = 40000; export type NonPrivateMethodKeys = { - [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]; export type BindableObject = { - [k in NonPrivateMethodKeys]: (...args: any[]) => any; + [k in NonPrivateMethodKeys]: (...args: any[]) => any; // eslint-disable-line @typescript-eslint/no-explicit-any }; export type ConnectionInfo = { relayURIs: string[]; @@ -27,14 +27,14 @@ export type Request = { type: string; direction: DIRECTION_REQUEST; seq: number; - args: any[]; + args: any[]; // eslint-disable-line @typescript-eslint/no-explicit-any }; export type Response = { type: string; direction: DIRECTION_RESPONSE; seq: number; - data?: any; - error?: any; + data?: any; // eslint-disable-line @typescript-eslint/no-explicit-any + error?: any; // eslint-disable-line @typescript-eslint/no-explicit-any }; export type DeviceInfo = { currentPeerId: string; @@ -75,7 +75,7 @@ export interface ReplicatorHost { export interface ReplicatorHostEnv extends ReplicatorHost { settings: P2PSyncSetting; db: PouchDB.Database; - simpleStore: SimpleStore; + simpleStore: SimpleStore; // eslint-disable-line @typescript-eslint/no-explicit-any processReplicatedDocs(docs: Array>): void | Promise; } export type Advertisement = { diff --git a/_types/src/lib/src/serviceModules/FileAccessBase.d.ts b/_types/src/lib/src/serviceModules/FileAccessBase.d.ts index ae1f45b..575bab6 100644 --- a/_types/src/lib/src/serviceModules/FileAccessBase.d.ts +++ b/_types/src/lib/src/serviceModules/FileAccessBase.d.ts @@ -16,26 +16,26 @@ export interface FileAccessBaseDependencies { /** * Type helper to extract the abstract file type from a file system adapter */ -export type ExtractAbstractFile = T extends IFileSystemAdapter ? A : never; +export type ExtractAbstractFile = T extends IFileSystemAdapter ? A : never; // eslint-disable-line @typescript-eslint/no-explicit-any /** * Type helper to extract the file type from a file system adapter */ -export type ExtractFile = T extends IFileSystemAdapter ? F : never; +export type ExtractFile = T extends IFileSystemAdapter ? F : never; // eslint-disable-line @typescript-eslint/no-explicit-any /** * Type helper to extract the folder type from a file system adapter */ -export type ExtractFolder = T extends IFileSystemAdapter ? D : never; +export type ExtractFolder = T extends IFileSystemAdapter ? D : never; // eslint-disable-line @typescript-eslint/no-explicit-any /** * Type helper to extract the stat type from a file system adapter */ -export type ExtractStat = T extends IFileSystemAdapter ? S : never; +export type ExtractStat = T extends IFileSystemAdapter ? S : never; // eslint-disable-line @typescript-eslint/no-explicit-any /** * Base class for file access operations * Uses adapter pattern for platform-specific implementations * * @template TAdapter - The file system adapter type, which determines all native file types */ -export declare class FileAccessBase> { +export declare class FileAccessBase> { // eslint-disable-line @typescript-eslint/no-explicit-any protected storageAccessManager: IStorageAccessManager; protected vaultService: IVaultService; protected settingService: ISettingService; @@ -52,7 +52,7 @@ export declare class FileAccessBase | string, U>(file: T, callback: (path: FilePath, file: T) => Promise): Promise; protected _readOp | string, U>(file: T, callback: (path: FilePath, file: T) => Promise): Promise; - tryAdapterStat(file: ExtractFile | string): Promise; + tryAdapterStat(file: ExtractFile | string): Promise; // eslint-disable-line @typescript-eslint/no-explicit-any adapterStat(file: ExtractFile | string): Promise | null>; adapterExists(file: ExtractFile | string): Promise; adapterRemove(file: ExtractFile | string): Promise; @@ -70,7 +70,7 @@ export declare class FileAccessBase): Promise; vaultModify(file: ExtractFile, data: string | ArrayBuffer | Uint8Array, options?: UXDataWriteOptions): Promise; vaultCreate(path: string, data: string | ArrayBuffer | Uint8Array, options?: UXDataWriteOptions): Promise>; - trigger(name: string, ...data: any[]): any; + trigger(name: string, ...data: any[]): any; // eslint-disable-line @typescript-eslint/no-explicit-any reconcileInternalFile(path: string): Promise; /** * Append data to a file using the adapter's append method. This is useful for large files that cannot be read into memory. diff --git a/_types/src/lib/src/serviceModules/ServiceFileAccessBase.d.ts b/_types/src/lib/src/serviceModules/ServiceFileAccessBase.d.ts index 26046ca..f884e79 100644 --- a/_types/src/lib/src/serviceModules/ServiceFileAccessBase.d.ts +++ b/_types/src/lib/src/serviceModules/ServiceFileAccessBase.d.ts @@ -11,7 +11,7 @@ import type { VaultService } from "@lib/services/base/VaultService"; import type { SettingService } from "@lib/services/base/SettingService"; import type { FileAccessBase, ExtractFile, ExtractFolder } from "./FileAccessBase"; import type { IFileSystemAdapter } from "./adapters"; -export interface StorageAccessBaseDependencies> { +export interface StorageAccessBaseDependencies> { // eslint-disable-line @typescript-eslint/no-explicit-any API: APIService; appLifecycle: AppLifecycleService; fileProcessing: FileProcessingService; diff --git a/_types/src/lib/src/serviceModules/adapters/IConversionAdapter.d.ts b/_types/src/lib/src/serviceModules/adapters/IConversionAdapter.d.ts index 16a037f..b1a5c18 100644 --- a/_types/src/lib/src/serviceModules/adapters/IConversionAdapter.d.ts +++ b/_types/src/lib/src/serviceModules/adapters/IConversionAdapter.d.ts @@ -3,7 +3,7 @@ import type { UXFileInfoStub, UXFolderInfo } from "@lib/common/models/fileaccess * Conversion adapter interface * Converts between native file system types and universal types */ -export interface IConversionAdapter { +export interface IConversionAdapter { // eslint-disable-line @typescript-eslint/no-explicit-any /** * Convert a native file object to a universal file info stub */ diff --git a/_types/src/lib/src/serviceModules/adapters/IVaultAdapter.d.ts b/_types/src/lib/src/serviceModules/adapters/IVaultAdapter.d.ts index 6683259..c44d66e 100644 --- a/_types/src/lib/src/serviceModules/adapters/IVaultAdapter.d.ts +++ b/_types/src/lib/src/serviceModules/adapters/IVaultAdapter.d.ts @@ -43,5 +43,5 @@ export interface IVaultAdapter { /** * 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 } diff --git a/_types/src/lib/src/services/HeadlessServices.d.ts b/_types/src/lib/src/services/HeadlessServices.d.ts index 099dab7..1a1a9bd 100644 --- a/_types/src/lib/src/services/HeadlessServices.d.ts +++ b/_types/src/lib/src/services/HeadlessServices.d.ts @@ -1,7 +1,7 @@ import { ServiceContext } from "./base/ServiceBase"; import { InjectableServiceHub } from "./implements/injectable/InjectableServiceHub"; import type { DatabaseService } from "./base/DatabaseService.ts"; -type Constructor = new (...args: any[]) => T; +type Constructor = new (...args: any[]) => T; // eslint-disable-line @typescript-eslint/no-explicit-any export declare class HeadlessServiceHub extends InjectableServiceHub { constructor(_context?: T, overrideServiceConstructor?: { database?: Constructor>; diff --git a/_types/src/lib/src/services/base/APIService.d.ts b/_types/src/lib/src/services/base/APIService.d.ts index d81c28d..51c9c36 100644 --- a/_types/src/lib/src/services/base/APIService.d.ts +++ b/_types/src/lib/src/services/base/APIService.d.ts @@ -58,20 +58,20 @@ export declare abstract class APIService 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. * @param icon * @param title * @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. * @param action The action string for the protocol. * @param handler The handler function for the protocol. */ - abstract registerProtocolHandler(action: string, handler: (params: Record) => any): void; + abstract registerProtocolHandler(action: string, handler: (params: Record) => any): void; // eslint-disable-line @typescript-eslint/no-explicit-any /** * Get the basic UI component for showing a confirmation dialog to the user. */ diff --git a/_types/src/lib/src/services/base/AppLifecycleService.d.ts b/_types/src/lib/src/services/base/AppLifecycleService.d.ts index 65be0d5..de01f47 100644 --- a/_types/src/lib/src/services/base/AppLifecycleService.d.ts +++ b/_types/src/lib/src/services/base/AppLifecycleService.d.ts @@ -57,7 +57,7 @@ export declare abstract class AppLifecycleService Promise, any>; + readonly onAppUnload: import("@lib/services/lib/HandlerUtils").CollectiveHandlerFunction<() => Promise, any>; // eslint-disable-line @typescript-eslint/no-explicit-any /** * 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. @@ -128,5 +128,5 @@ export declare abstract class AppLifecycleService Promise<(string | Error)[][]>, any>; + readonly getUnresolvedMessages: import("@lib/services/lib/HandlerUtils").CollectiveHandlerFunction<() => Promise<(string | Error)[][]>, any>; // eslint-disable-line @typescript-eslint/no-explicit-any } diff --git a/_types/src/lib/src/services/base/ConflictService.d.ts b/_types/src/lib/src/services/base/ConflictService.d.ts index 7216fc4..92c8d5a 100644 --- a/_types/src/lib/src/services/base/ConflictService.d.ts +++ b/_types/src/lib/src/services/base/ConflictService.d.ts @@ -10,7 +10,7 @@ export declare abstract class ConflictService Promise, any>; + readonly getOptionalConflictCheckMethod: import("@lib/services/lib/HandlerUtils").MultipleHandlerFunction<(path: FilePathWithPrefix) => Promise, any>; // eslint-disable-line @typescript-eslint/no-explicit-any /** * Queue a check for conflicts if the file is currently open in the editor. * @param path The file (virtual) path to check for conflicts. @@ -31,7 +31,7 @@ export declare abstract class ConflictService Promise, any>; + readonly resolveByUserInteraction: import("@lib/services/lib/HandlerUtils").MultipleHandlerFunction<(filename: FilePathWithPrefix, conflictCheckResult: import("../../common/types").diff_result) => Promise, any>; // eslint-disable-line @typescript-eslint/no-explicit-any /** * Resolve a conflict by deleting a specific revision. * @param path The file (virtual) path with conflict. diff --git a/_types/src/lib/src/services/base/IService.d.ts b/_types/src/lib/src/services/base/IService.d.ts index 3d70b00..2b358e9 100644 --- a/_types/src/lib/src/services/base/IService.d.ts +++ b/_types/src/lib/src/services/base/IService.d.ts @@ -26,10 +26,10 @@ export interface ICommandCompat { id: string; name: string; icon?: string; - callback?: () => any; + callback?: () => any; // eslint-disable-line @typescript-eslint/no-explicit-any checkCallback?: (checking: boolean) => boolean | void; - editorCallback?: (editor: any, ctx: any) => any; - editorCheckCallback?: (checking: any, editor: any, ctx: any) => boolean | void; + editorCallback?: (editor: any, ctx: any) => any; // eslint-disable-line @typescript-eslint/no-explicit-any + editorCheckCallback?: (checking: any, editor: any, ctx: any) => boolean | void; // eslint-disable-line @typescript-eslint/no-explicit-any } export interface IAPIService { getCustomFetchHandler(): FetchHttpHandler; @@ -44,9 +44,9 @@ export interface IAPIService { getAppVersion(): string; getPluginVersion(): string; addCommand(command: TCommand): TCommand; - registerWindow(type: string, factory: (leaf: any) => any): void; - addRibbonIcon(icon: string, title: string, callback: (evt: MouseEvent) => any): HTMLElement; - registerProtocolHandler(action: string, handler: (params: Record) => 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; // eslint-disable-line @typescript-eslint/no-explicit-any + registerProtocolHandler(action: string, handler: (params: Record) => any): void; // eslint-disable-line @typescript-eslint/no-explicit-any confirm: Confirm; responseCount: ReactiveSource; requestCount: ReactiveSource; diff --git a/_types/src/lib/src/services/base/KeyValueDBService.d.ts b/_types/src/lib/src/services/base/KeyValueDBService.d.ts index c1a1528..f9c69bc 100644 --- a/_types/src/lib/src/services/base/KeyValueDBService.d.ts +++ b/_types/src/lib/src/services/base/KeyValueDBService.d.ts @@ -16,7 +16,7 @@ export interface KeyValueDBDependencies extends ServiceBase implements IKeyValueDBService { private _kvDB; private _simpleStore; - get simpleStore(): SimpleStore; + get simpleStore(): SimpleStore; // eslint-disable-line @typescript-eslint/no-explicit-any get kvDB(): KeyValueDatabase; private databaseEvents; private vault; diff --git a/_types/src/lib/src/services/base/ReplicationService.d.ts b/_types/src/lib/src/services/base/ReplicationService.d.ts index fc6bb46..b413ad6 100644 --- a/_types/src/lib/src/services/base/ReplicationService.d.ts +++ b/_types/src/lib/src/services/base/ReplicationService.d.ts @@ -77,7 +77,7 @@ export declare abstract class ReplicationService Promise, any>; + readonly checkConnectionFailure: import("@lib/services/lib/HandlerUtils").MultipleHandlerFunction<() => Promise, any>; // eslint-disable-line @typescript-eslint/no-explicit-any databaseQueueCount: import("octagonal-wheels/dataobject/reactive_v2").ReactiveSource; storageApplyingCount: import("octagonal-wheels/dataobject/reactive_v2").ReactiveSource; replicationResultCount: import("octagonal-wheels/dataobject/reactive_v2").ReactiveSource; diff --git a/_types/src/lib/src/services/base/ReplicatorService.d.ts b/_types/src/lib/src/services/base/ReplicatorService.d.ts index e4970a8..e7c8e8d 100644 --- a/_types/src/lib/src/services/base/ReplicatorService.d.ts +++ b/_types/src/lib/src/services/base/ReplicatorService.d.ts @@ -35,7 +35,7 @@ export declare abstract class ReplicatorService) => Promise, any>; + readonly getNewReplicator: import("@lib/services/lib/HandlerUtils").MultipleHandlerFunction<(settingOverride?: Partial) => Promise, any>; // eslint-disable-line @typescript-eslint/no-explicit-any readonly onReplicatorInitialised: import("@lib/services/lib/HandlerUtils").BooleanMultipleHandlerFunction<() => Promise>; /** * Get the currently active replicator instance. diff --git a/_types/src/lib/src/services/base/SettingService.d.ts b/_types/src/lib/src/services/base/SettingService.d.ts index d3b46d8..c79cf4c 100644 --- a/_types/src/lib/src/services/base/SettingService.d.ts +++ b/_types/src/lib/src/services/base/SettingService.d.ts @@ -85,7 +85,7 @@ export declare abstract class SettingService Promise>; readonly onSettingChanged: import("@lib/services/lib/HandlerUtils").BooleanMultipleHandlerFunction<(settings: ObsidianLiveSyncSettings) => Promise>; readonly onSettingSaved: import("@lib/services/lib/HandlerUtils").BooleanMultipleHandlerFunction<(settings: ObsidianLiveSyncSettings) => Promise>; - readonly onBeforeSaveSettingData: import("@lib/services/lib/HandlerUtils").CollectiveHandlerFunction<(nextSettings: ObsidianLiveSyncSettings, previousSettings: ObsidianLiveSyncSettings) => Promise<(Partial | void)[]>, any>; + readonly onBeforeSaveSettingData: import("@lib/services/lib/HandlerUtils").CollectiveHandlerFunction<(nextSettings: ObsidianLiveSyncSettings, previousSettings: ObsidianLiveSyncSettings) => Promise<(Partial | void)[]>, any>; // eslint-disable-line @typescript-eslint/no-explicit-any /** * Get the current settings. */ diff --git a/_types/src/lib/src/services/implements/browser/BrowserAPIService.d.ts b/_types/src/lib/src/services/implements/browser/BrowserAPIService.d.ts index bde0ca4..3c3b813 100644 --- a/_types/src/lib/src/services/implements/browser/BrowserAPIService.d.ts +++ b/_types/src/lib/src/services/implements/browser/BrowserAPIService.d.ts @@ -25,7 +25,7 @@ export declare class BrowserAPIService extends Injecta getCustomFetchHandler(): FetchHttpHandler; isMobile(): boolean; 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; getPluginVersion(): string; getPlatform(): string; @@ -44,8 +44,8 @@ export declare class BrowserAPIService extends Injecta private executeCommand; private refreshCommandStates; addCommand(command: TCommand): TCommand; - addRibbonIcon(icon: string, title: string, callback: (evt: MouseEvent) => any): HTMLElement; - registerWindow(type: string, factory: (leaf: any) => any): void; - registerProtocolHandler(action: string, handler: (params: Record) => any): void; + 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; // eslint-disable-line @typescript-eslint/no-explicit-any + registerProtocolHandler(action: string, handler: (params: Record) => any): void; // eslint-disable-line @typescript-eslint/no-explicit-any addStatusBarItem(): HTMLElement | undefined; } diff --git a/_types/src/lib/src/services/implements/headless/HeadlessAPIService.d.ts b/_types/src/lib/src/services/implements/headless/HeadlessAPIService.d.ts index 00d4b94..da10c89 100644 --- a/_types/src/lib/src/services/implements/headless/HeadlessAPIService.d.ts +++ b/_types/src/lib/src/services/implements/headless/HeadlessAPIService.d.ts @@ -39,9 +39,9 @@ export declare class HeadlessAPIService extends Inject getPlatform(): string; getCrypto(): Crypto; addCommand(command: TCommand): TCommand; - addRibbonIcon(icon: string, title: string, callback: (evt: MouseEvent) => any): HTMLElement; - registerWindow(type: string, factory: (leaf: any) => any): void; - registerProtocolHandler(action: string, handler: (params: Record) => any): void; + 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; // eslint-disable-line @typescript-eslint/no-explicit-any + registerProtocolHandler(action: string, handler: (params: Record) => any): void; // eslint-disable-line @typescript-eslint/no-explicit-any addStatusBarItem(): HTMLElement | undefined; private toSafeKeyPart; private hash32; diff --git a/_types/src/lib/src/services/implements/injectable/InjectableAPIService.d.ts b/_types/src/lib/src/services/implements/injectable/InjectableAPIService.d.ts index aab5d50..749968d 100644 --- a/_types/src/lib/src/services/implements/injectable/InjectableAPIService.d.ts +++ b/_types/src/lib/src/services/implements/injectable/InjectableAPIService.d.ts @@ -1,7 +1,7 @@ import { APIService } from "@lib/services/base/APIService"; import type { ServiceContext } from "@lib/services/base/ServiceBase"; export declare abstract class InjectableAPIService extends APIService { - 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; getCrypto(): Crypto; } diff --git a/_types/src/lib/src/services/implements/injectable/InjectableAppLifecycleService.d.ts b/_types/src/lib/src/services/implements/injectable/InjectableAppLifecycleService.d.ts index b7ee414..bb404be 100644 --- a/_types/src/lib/src/services/implements/injectable/InjectableAppLifecycleService.d.ts +++ b/_types/src/lib/src/services/implements/injectable/InjectableAppLifecycleService.d.ts @@ -2,10 +2,10 @@ import { AppLifecycleService } from "@lib/services/base/AppLifecycleService"; import type { IAppLifecycleService } from "@lib/services/base/IService"; import type { ServiceContext } from "@lib/services/base/ServiceBase"; export declare abstract class AppLifecycleServiceBase extends AppLifecycleService { - askRestart: import("@lib/services/lib/HandlerUtils").HandlerFunction<(message?: string) => void, any>; - scheduleRestart: import("@lib/services/lib/HandlerUtils").HandlerFunction<() => void, any>; - isReloadingScheduled: import("@lib/services/lib/HandlerUtils").HandlerFunction<() => boolean, 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>; // eslint-disable-line @typescript-eslint/no-explicit-any + isReloadingScheduled: import("@lib/services/lib/HandlerUtils").HandlerFunction<() => boolean, any>; // eslint-disable-line @typescript-eslint/no-explicit-any } export declare abstract class InjectableAppLifecycleService extends AppLifecycleServiceBase 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 } diff --git a/_types/src/lib/src/services/implements/injectable/InjectableConflictService.d.ts b/_types/src/lib/src/services/implements/injectable/InjectableConflictService.d.ts index 2f58f92..3a0ba26 100644 --- a/_types/src/lib/src/services/implements/injectable/InjectableConflictService.d.ts +++ b/_types/src/lib/src/services/implements/injectable/InjectableConflictService.d.ts @@ -1,11 +1,11 @@ import { ConflictService } from "@lib/services/base/ConflictService"; import type { ServiceContext } from "@lib/services/base/ServiceBase"; export declare class InjectableConflictService extends ConflictService { - queueCheckForIfOpen: import("@lib/services/lib/HandlerUtils").HandlerFunction<(path: import("../../../common/settingConstants").FilePathWithPrefix) => Promise, any>; - queueCheckFor: import("@lib/services/lib/HandlerUtils").HandlerFunction<(path: import("../../../common/settingConstants").FilePathWithPrefix) => Promise, any>; - ensureAllProcessed: import("@lib/services/lib/HandlerUtils").HandlerFunction<() => Promise, any>; - resolveByDeletingRevision: import("@lib/services/lib/HandlerUtils").HandlerFunction<(path: import("../../../common/settingConstants").FilePathWithPrefix, deleteRevision: string, title: string) => Promise, any>; - resolve: import("@lib/services/lib/HandlerUtils").HandlerFunction<(filename: import("../../../common/settingConstants").FilePathWithPrefix) => Promise, any>; - resolveByNewest: import("@lib/services/lib/HandlerUtils").HandlerFunction<(filename: import("../../../common/settingConstants").FilePathWithPrefix) => Promise, any>; - resolveAllConflictedFilesByNewerOnes: import("@lib/services/lib/HandlerUtils").HandlerFunction<() => Promise, any>; + queueCheckForIfOpen: import("@lib/services/lib/HandlerUtils").HandlerFunction<(path: import("../../../common/settingConstants").FilePathWithPrefix) => Promise, any>; // eslint-disable-line @typescript-eslint/no-explicit-any + queueCheckFor: import("@lib/services/lib/HandlerUtils").HandlerFunction<(path: import("../../../common/settingConstants").FilePathWithPrefix) => Promise, any>; // eslint-disable-line @typescript-eslint/no-explicit-any + ensureAllProcessed: import("@lib/services/lib/HandlerUtils").HandlerFunction<() => Promise, 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, any>; // eslint-disable-line @typescript-eslint/no-explicit-any + resolve: import("@lib/services/lib/HandlerUtils").HandlerFunction<(filename: import("../../../common/settingConstants").FilePathWithPrefix) => Promise, any>; // eslint-disable-line @typescript-eslint/no-explicit-any + resolveByNewest: import("@lib/services/lib/HandlerUtils").HandlerFunction<(filename: import("../../../common/settingConstants").FilePathWithPrefix) => Promise, any>; // eslint-disable-line @typescript-eslint/no-explicit-any + resolveAllConflictedFilesByNewerOnes: import("@lib/services/lib/HandlerUtils").HandlerFunction<() => Promise, any>; // eslint-disable-line @typescript-eslint/no-explicit-any } diff --git a/_types/src/lib/src/services/implements/injectable/InjectableSettingService.d.ts b/_types/src/lib/src/services/implements/injectable/InjectableSettingService.d.ts index f939b16..5398767 100644 --- a/_types/src/lib/src/services/implements/injectable/InjectableSettingService.d.ts +++ b/_types/src/lib/src/services/implements/injectable/InjectableSettingService.d.ts @@ -6,6 +6,6 @@ export declare class InjectableSettingService extends protected setItem(key: string, value: string): void; protected getItem(key: string): string; protected deleteItem(key: string): void; - saveData: import("@lib/services/lib/HandlerUtils").HandlerFunction<(data: ObsidianLiveSyncSettings) => Promise, any>; - loadData: import("@lib/services/lib/HandlerUtils").HandlerFunction<() => Promise, any>; + saveData: import("@lib/services/lib/HandlerUtils").HandlerFunction<(data: ObsidianLiveSyncSettings) => Promise, any>; // eslint-disable-line @typescript-eslint/no-explicit-any + loadData: import("@lib/services/lib/HandlerUtils").HandlerFunction<() => Promise, any>; // eslint-disable-line @typescript-eslint/no-explicit-any } diff --git a/_types/src/lib/src/services/implements/injectable/InjectableTestService.d.ts b/_types/src/lib/src/services/implements/injectable/InjectableTestService.d.ts index dfc2a71..0f3b987 100644 --- a/_types/src/lib/src/services/implements/injectable/InjectableTestService.d.ts +++ b/_types/src/lib/src/services/implements/injectable/InjectableTestService.d.ts @@ -1,5 +1,5 @@ import type { ServiceContext } from "@lib/services/base/ServiceBase"; import { TestService } from "@lib/services/base/TestService"; export declare class InjectableTestService extends TestService { - 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 } diff --git a/_types/src/lib/src/services/implements/injectable/InjectableTweakValueService.d.ts b/_types/src/lib/src/services/implements/injectable/InjectableTweakValueService.d.ts index 3eb55da..26da93f 100644 --- a/_types/src/lib/src/services/implements/injectable/InjectableTweakValueService.d.ts +++ b/_types/src/lib/src/services/implements/injectable/InjectableTweakValueService.d.ts @@ -1,15 +1,15 @@ import type { ServiceContext } from "@lib/services/base/ServiceBase"; import { TweakValueService } from "@lib/services/base/TweakValueService"; export declare class InjectableTweakValueService extends TweakValueService { - fetchRemotePreferred: import("@lib/services/lib/HandlerUtils").HandlerFunction<(trialSetting: import("../../../common/types").RemoteDBSettings) => Promise, any>; - checkAndAskResolvingMismatched: import("@lib/services/lib/HandlerUtils").HandlerFunction<(preferred: Partial) => Promise<[import("../../../common/types").TweakValues | boolean, boolean]>, any>; - askResolvingMismatched: import("@lib/services/lib/HandlerUtils").HandlerFunction<(preferredSource: import("../../../common/types").TweakValues) => Promise<"OK" | "CHECKAGAIN" | "IGNORE">, any>; + fetchRemotePreferred: import("@lib/services/lib/HandlerUtils").HandlerFunction<(trialSetting: import("../../../common/types").RemoteDBSettings) => Promise, any>; // eslint-disable-line @typescript-eslint/no-explicit-any + checkAndAskResolvingMismatched: import("@lib/services/lib/HandlerUtils").HandlerFunction<(preferred: Partial) => 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>; // eslint-disable-line @typescript-eslint/no-explicit-any checkAndAskUseRemoteConfiguration: import("@lib/services/lib/HandlerUtils").HandlerFunction<(settings: import("../../../common/types").RemoteDBSettings) => Promise<{ result: false | import("../../../common/types").TweakValues; 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<{ result: false | import("../../../common/types").TweakValues; requireFetch: boolean; - }>, any>; + }>, any>; // eslint-disable-line @typescript-eslint/no-explicit-any } diff --git a/_types/src/lib/src/services/implements/injectable/InjectableVaultService.d.ts b/_types/src/lib/src/services/implements/injectable/InjectableVaultService.d.ts index 120bdba..8235fa6 100644 --- a/_types/src/lib/src/services/implements/injectable/InjectableVaultService.d.ts +++ b/_types/src/lib/src/services/implements/injectable/InjectableVaultService.d.ts @@ -3,7 +3,7 @@ import { VaultService } from "@lib/services/base/VaultService"; export declare abstract class InjectableVaultService extends VaultService { } export declare class InjectableVaultServiceCompat extends InjectableVaultService { - isStorageInsensitive: import("@lib/services/lib/HandlerUtils").HandlerFunction<() => boolean, any>; - getActiveFilePath: import("@lib/services/lib/HandlerUtils").HandlerFunction<() => import("../../../common/settingConstants").FilePath | undefined, 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>; // eslint-disable-line @typescript-eslint/no-explicit-any isValidPath(path: string): boolean; } diff --git a/_types/src/lib/src/services/lib/HandlerUtils.d.ts b/_types/src/lib/src/services/lib/HandlerUtils.d.ts index c293706..f6ea1db 100644 --- a/_types/src/lib/src/services/lib/HandlerUtils.d.ts +++ b/_types/src/lib/src/services/lib/HandlerUtils.d.ts @@ -64,7 +64,7 @@ export interface DispatchHandler extends DispatcherHandl /** * A binder that allows assigning and invoking a single handler function. */ -export declare class Binder> implements BinderHandler, ReturnType>, InvokableHandler, ReturnType> { +export declare class Binder> implements BinderHandler, ReturnType>, InvokableHandler, ReturnType> { // eslint-disable-line @typescript-eslint/no-explicit-any private _name; /** * Creates a new Binder instance. @@ -89,7 +89,7 @@ export declare class Binder> implements BinderHa * A binder that allows assigning and invoking a single handler function asynchronously. * The invocation will wait until a handler is assigned. */ -export declare class LazyBinder> implements BinderHandler, ReturnType>, InvokableHandler, Promise>>> { +export declare class LazyBinder> implements BinderHandler, ReturnType>, InvokableHandler, Promise>>> { // eslint-disable-line @typescript-eslint/no-explicit-any private _name; private _callbackPromise; private _callback; @@ -110,7 +110,7 @@ export declare class LazyBinder> implements Bind /** * A multi-binder that allows adding and removing multiple handler functions. */ -export declare class MultiBinder> implements MultiRegisterHandler, ReturnType> { +export declare class MultiBinder> implements MultiRegisterHandler, ReturnType> { // eslint-disable-line @typescript-eslint/no-explicit-any protected _name: string; /** * Creates a new MultiBinder instance. @@ -218,7 +218,7 @@ export declare class FirstResultHandler extends MultiBin /** * A function type that can be used as a handler with assignable functionality. */ -export interface HandlerFunction U | Promise, U = any> { +export interface HandlerFunction U | Promise, U = any> { // eslint-disable-line @typescript-eslint/no-explicit-any /** * Invokes the handler function with the provided arguments. */ @@ -234,7 +234,7 @@ export interface HandlerFunction U | Promise U | Promise, U = any> { +export interface LazyHandlerFunction U | Promise, U = any> { // eslint-disable-line @typescript-eslint/no-explicit-any /** * Invokes the handler function with the provided arguments. */ @@ -250,7 +250,7 @@ export interface LazyHandlerFunction U | Promi /** * A function type that can be used as a multiple handler with add/remove functionality. */ -export interface MultipleHandlerFunction U | Promise, U = any> { +export interface MultipleHandlerFunction U | Promise, U = any> { // eslint-disable-line @typescript-eslint/no-explicit-any /** * Invokes the handler function with the provided arguments. */ @@ -271,11 +271,11 @@ export interface MultipleHandlerFunction U | P /** * A function type that can be used as a value-collecting handler with add/remove functionality. */ -export type CollectorFunction U | Promise, U = any> = (...args: Parameters) => Promise>; +export type CollectorFunction U | Promise, U = any> = (...args: Parameters) => Promise>; // 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. */ -export interface CollectiveHandlerFunction U[] | Promise, U = any> { +export interface CollectiveHandlerFunction U[] | Promise, U = any> { // eslint-disable-line @typescript-eslint/no-explicit-any /** * Invokes the handler function with the provided arguments. */ @@ -293,7 +293,7 @@ export interface CollectiveHandlerFunction U[] */ removeHandler: (callback: CollectorFunction) => void; } -export interface BooleanMultipleHandlerFunction boolean | Promise> { +export interface BooleanMultipleHandlerFunction boolean | Promise> { // eslint-disable-line @typescript-eslint/no-explicit-any /** * Invokes the handler function with the provided arguments. */ @@ -315,16 +315,16 @@ export interface MultiBinderInstance extends InvokableHa } export interface BooleanMultiBinderInstance extends InvokableBooleanHandler, MultiRegisterHandler { } -export declare function allFunction Promise>(name?: string): BooleanMultipleHandlerFunction; -export declare function bailFirstFailureFunction Promise>(name?: string): BooleanMultipleHandlerFunction; -export declare function allParallelFunction Promise>(name?: string): BooleanMultipleHandlerFunction; -export declare function anySuccessFunction Promise>(name?: string): BooleanMultipleHandlerFunction; -export declare function firstResultFunction Promise>(name?: string): MultipleHandlerFunction; -export declare function dispatchParallelFunction Promise>(name?: string): CollectiveHandlerFunction; -export declare function bindableFunction any>(name?: string): HandlerFunction; -export declare function lazyBindableFunction any>(name?: string): LazyHandlerFunction; +export declare function allFunction Promise>(name?: string): BooleanMultipleHandlerFunction; // eslint-disable-line @typescript-eslint/no-explicit-any +export declare function bailFirstFailureFunction Promise>(name?: string): BooleanMultipleHandlerFunction; // eslint-disable-line @typescript-eslint/no-explicit-any +export declare function allParallelFunction Promise>(name?: string): BooleanMultipleHandlerFunction; // eslint-disable-line @typescript-eslint/no-explicit-any +export declare function anySuccessFunction Promise>(name?: string): BooleanMultipleHandlerFunction; // eslint-disable-line @typescript-eslint/no-explicit-any +export declare function firstResultFunction Promise>(name?: string): MultipleHandlerFunction; // eslint-disable-line @typescript-eslint/no-explicit-any +export declare function dispatchParallelFunction Promise>(name?: string): CollectiveHandlerFunction; // eslint-disable-line @typescript-eslint/no-explicit-any +export declare function bindableFunction any>(name?: string): HandlerFunction; // eslint-disable-line @typescript-eslint/no-explicit-any +export declare function lazyBindableFunction any>(name?: string): LazyHandlerFunction; // eslint-disable-line @typescript-eslint/no-explicit-any type FunctionKeys = 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>; export declare function handlers(): { /** @@ -332,43 +332,43 @@ export declare function handlers(): { * @param name * @returns */ - all>(name: K): BooleanMultipleHandlerFunction Promise>>; + all>(name: K): BooleanMultipleHandlerFunction Promise>>; // 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. * @param name * @returns */ - allParallel>(name: K): BooleanMultipleHandlerFunction Promise>>; + allParallel>(name: K): BooleanMultipleHandlerFunction Promise>>; // eslint-disable-line @typescript-eslint/no-explicit-any /** * Create a handler that invokes all added handler functions sequentially until one returns false. * @param name * @returns */ - bailFirstFailure>(name: K): BooleanMultipleHandlerFunction Promise>>; + bailFirstFailure>(name: K): BooleanMultipleHandlerFunction Promise>>; // eslint-disable-line @typescript-eslint/no-explicit-any /** * Create a handler that invokes all added handler functions sequentially until one returns true. * @param name * @returns */ - anySuccess>(name: K): BooleanMultipleHandlerFunction Promise>>; + anySuccess>(name: K): BooleanMultipleHandlerFunction Promise>>; // 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. * @param name * @returns */ - firstResult>(name: K): MultipleHandlerFunction Promise>>; + firstResult>(name: K): MultipleHandlerFunction Promise>>; // eslint-disable-line @typescript-eslint/no-explicit-any /** * Create a handler that invokes all added handler functions in parallel. * @param name * @returns */ - dispatchParallel>(name: K): CollectiveHandlerFunction Promise>>; + dispatchParallel>(name: K): CollectiveHandlerFunction Promise>>; // eslint-disable-line @typescript-eslint/no-explicit-any /** * Create a binder handler that can assign a single handler function. * @param name * @returns */ - binder>(name: K): HandlerFunction any>>; - lazyBinder>(name: K): LazyHandlerFunction any>>; + binder>(name: K): HandlerFunction any>>; // eslint-disable-line @typescript-eslint/no-explicit-any + lazyBinder>(name: K): LazyHandlerFunction any>>; // eslint-disable-line @typescript-eslint/no-explicit-any }; export {}; diff --git a/_types/src/lib/src/services/lib/MiddlewareUtils.d.ts b/_types/src/lib/src/services/lib/MiddlewareUtils.d.ts index 9d97f1f..97a5441 100644 --- a/_types/src/lib/src/services/lib/MiddlewareUtils.d.ts +++ b/_types/src/lib/src/services/lib/MiddlewareUtils.d.ts @@ -17,9 +17,9 @@ export declare class MiddlewareManager { invoke(...args: TArgs): Promise; } type FunctionKeys = { - [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]; -export declare function middlewares any>>(): { +export declare function middlewares any>>(): { // eslint-disable-line @typescript-eslint/no-explicit-any useMiddleware>(key: K): { use: (priority: number, func: MiddlewareFunc, Awaited>>) => () => void; invoke: (...args: Parameters) => Promise>>; diff --git a/_types/src/modules/AbstractModule.d.ts b/_types/src/modules/AbstractModule.d.ts index 03a2c3e..2062c54 100644 --- a/_types/src/modules/AbstractModule.d.ts +++ b/_types/src/modules/AbstractModule.d.ts @@ -6,9 +6,9 @@ export declare abstract class AbstractModule void; get services(): import("../lib/src/services/InjectableServices").InjectableServiceHub; addCommand: (command: TCommand) => TCommand; - registerView: (type: string, factory: (leaf: any) => any) => void; - addRibbonIcon: (icon: string, title: string, callback: (evt: MouseEvent) => any) => HTMLElement; - registerObsidianProtocolHandler: (action: string, handler: (params: Record) => 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; // eslint-disable-line @typescript-eslint/no-explicit-any + registerObsidianProtocolHandler: (action: string, handler: (params: Record) => any) => void; // eslint-disable-line @typescript-eslint/no-explicit-any get localDatabase(): import("../lib/src/pouchdb/LiveSyncLocalDB").LiveSyncLocalDB; get settings(): import("../lib/src/common/types").ObsidianLiveSyncSettings; set settings(value: import("../lib/src/common/types").ObsidianLiveSyncSettings); diff --git a/_types/src/modules/ModuleTypes.d.ts b/_types/src/modules/ModuleTypes.d.ts index 4f16c1a..bc8fc68 100644 --- a/_types/src/modules/ModuleTypes.d.ts +++ b/_types/src/modules/ModuleTypes.d.ts @@ -4,7 +4,7 @@ export type OverridableFunctionsKeys = { [K in keyof T as K extends `$${string}` ? K : never]: T[K]; }; export type ChainableExecuteFunction = { - [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; export type ICoreModule = Prettify>; @@ -12,16 +12,16 @@ export type CoreModuleKeys = keyof ICoreModule; export type ChainableFunctionResult = Promise | Promise | Promise | Promise; export type ChainableFunctionResultOrAll = Promise; type AllExecuteFunction = { - [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 = { - [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 = { - [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 = { - [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; export type EveryExecuteProps = EveryExecuteFunction; diff --git a/_types/src/modules/features/GlobalHistory/GlobalHistoryView.d.ts b/_types/src/modules/features/GlobalHistory/GlobalHistoryView.d.ts index 8c34e5f..6bef55c 100644 --- a/_types/src/modules/features/GlobalHistory/GlobalHistoryView.d.ts +++ b/_types/src/modules/features/GlobalHistory/GlobalHistoryView.d.ts @@ -4,9 +4,9 @@ import { SvelteItemView } from "@/common/SvelteItemView.ts"; export declare const VIEW_TYPE_GLOBAL_HISTORY = "global-history"; export declare class GlobalHistoryView extends SvelteItemView { instantiateComponent(target: HTMLElement): { - $on?(type: string, callback: (e: any) => void): () => void; - $set?(props: Partial>): void; - } & Record; + $on?(type: string, callback: (e: any) => void): () => void; // eslint-disable-line @typescript-eslint/no-explicit-any + $set?(props: Partial>): void; // eslint-disable-line @typescript-eslint/no-explicit-any + } & Record; // eslint-disable-line @typescript-eslint/no-explicit-any plugin: ObsidianLiveSyncPlugin; icon: string; title: string; diff --git a/_types/src/modules/features/Log/LogPaneView.d.ts b/_types/src/modules/features/Log/LogPaneView.d.ts index cd39422..d5dbfbb 100644 --- a/_types/src/modules/features/Log/LogPaneView.d.ts +++ b/_types/src/modules/features/Log/LogPaneView.d.ts @@ -4,9 +4,9 @@ import { SvelteItemView } from "@/common/SvelteItemView.ts"; export declare const VIEW_TYPE_LOG = "log-log"; export declare class LogPaneView extends SvelteItemView { instantiateComponent(target: HTMLElement): { - $on?(type: string, callback: (e: any) => void): () => void; - $set?(props: Partial>): void; - } & Record; + $on?(type: string, callback: (e: any) => void): () => void; // eslint-disable-line @typescript-eslint/no-explicit-any + $set?(props: Partial>): void; // eslint-disable-line @typescript-eslint/no-explicit-any + } & Record; // eslint-disable-line @typescript-eslint/no-explicit-any plugin: ObsidianLiveSyncPlugin; icon: string; title: string; diff --git a/_types/src/modules/features/SettingDialogue/LiveSyncSetting.d.ts b/_types/src/modules/features/SettingDialogue/LiveSyncSetting.d.ts index 8f03b36..39d2d80 100644 --- a/_types/src/modules/features/SettingDialogue/LiveSyncSetting.d.ts +++ b/_types/src/modules/features/SettingDialogue/LiveSyncSetting.d.ts @@ -30,7 +30,7 @@ export declare class LiveSyncSetting extends Setting { isHidden?: boolean; isAdvanced?: boolean; } | undefined; - autoWireComponent(component: ValueComponent, conf?: ConfigurationItem, opt?: AutoWireOption): void; + autoWireComponent(component: ValueComponent, conf?: ConfigurationItem, opt?: AutoWireOption): void; // eslint-disable-line @typescript-eslint/no-explicit-any commitValue(value: AllSettings[T]): Promise; autoWireText(key: AllStringItemKey, opt?: AutoWireOption): this; autoWireTextArea(key: AllStringItemKey, opt?: AutoWireOption): this; diff --git a/_types/src/modules/features/SettingDialogue/ObsidianLiveSyncSettingTab.d.ts b/_types/src/modules/features/SettingDialogue/ObsidianLiveSyncSettingTab.d.ts index eb0a2d8..53d7119 100644 --- a/_types/src/modules/features/SettingDialogue/ObsidianLiveSyncSettingTab.d.ts +++ b/_types/src/modules/features/SettingDialogue/ObsidianLiveSyncSettingTab.d.ts @@ -58,7 +58,7 @@ export declare class ObsidianLiveSyncSettingTab extends PluginSettingTab { isConfiguredAs(key: AllBooleanItemKey, value: boolean): boolean; settingComponents: Setting[]; controlledElementFunc: UpdateFunction[]; - onSavedHandlers: OnSavedHandler[]; + onSavedHandlers: OnSavedHandler[]; // eslint-disable-line @typescript-eslint/no-explicit-any inWizard: boolean; constructor(app: App, plugin: ObsidianLiveSyncPlugin); testConnection(settingOverride?: Partial): Promise; diff --git a/_types/src/serviceModules/FileSystemAdapters/ObsidianVaultAdapter.d.ts b/_types/src/serviceModules/FileSystemAdapters/ObsidianVaultAdapter.d.ts index 42fd4c1..3abaeaa 100644 --- a/_types/src/serviceModules/FileSystemAdapters/ObsidianVaultAdapter.d.ts +++ b/_types/src/serviceModules/FileSystemAdapters/ObsidianVaultAdapter.d.ts @@ -16,5 +16,5 @@ export declare class ObsidianVaultAdapter implements IVaultAdapter { createBinary(path: string, data: ArrayBuffer, options?: UXDataWriteOptions): Promise; delete(file: TFile | TFolder, force?: boolean): Promise; trash(file: TFile | TFolder, force?: boolean): Promise; - trigger(name: string, ...data: any[]): any; + trigger(name: string, ...data: any[]): any; // eslint-disable-line @typescript-eslint/no-explicit-any }