Interface for models using

Kos Future Aware

in minimal mode. Use TypeScript interface merging to add the futureHandler property to your model class.

Example

Add ESLint disable comment at top of file, then:

interface BackgroundServiceModelImpl extends KosFutureAwareMinimal {}

kosFutureAware({ mode: 'minimal' })
class BackgroundServiceModelImpl implements IKosDataModel {
// futureHandler is now available via interface merging
}
interface KosFutureAwareMinimal<T> {
    futureHandler: FutureAwareContainer<T>;
}

Type Parameters

  • T extends object = Record<string, unknown>

Hierarchy (view full)

Properties

Properties

futureHandler: FutureAwareContainer<T>

Core future management container that handles Future lifecycle operations. Provides methods to add, remove, and query Future instances. Automatically injected by

Kos Future Aware

decorator.