Skip to main content

Function: resolveDatabaseCommandContext()

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

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

Normalizes the supported constructor patterns into a context object.

Parameters

value

| DatabaseCommandServiceFactory | DatabaseCommandContext

eventEmitter?

TypedEventBus<UptimeEvents>

cache?

StandardizedCache<Site, string>

Returns

DatabaseCommandContext