Skip to main content

Function: resolveDatabaseCommandContext()

resolveDatabaseCommandContext(value: DatabaseServiceFactory | DatabaseCommandContext, eventEmitter?: TypedEventBus<UptimeEvents>, cache?: StandardizedCache<Site, string>): DatabaseCommandContext

Defined in: electron/services/commands/databaseCommandContext.ts:55

Normalizes the supported constructor patterns into a context object.

Parameters

value

DatabaseServiceFactory | DatabaseCommandContext

eventEmitter?

TypedEventBus<UptimeEvents>

cache?

StandardizedCache<Site, string>

Returns

DatabaseCommandContext