Interface for models using

Kos Multiple Future Aware

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

Example

Add ESLint disable comment at top of file, then:

interface MaintenanceModelImpl extends KosMultipleFutureAwareMinimal {
// Add your specific named futures manually for strong typing:
calibrationFuture?: IFutureModel;
cleaningFuture?: IFutureModel;
}

@kosMultipleFutureAware({ mode: 'minimal' })
class MaintenanceModelImpl implements IKosDataModel {
// futureHandler and named futures are now available via interface merging
}
interface KosMultipleFutureAwareMinimal {
    futureHandler: MultipleFutureHandler<Record<string, unknown>>;
    future?: IFutureModel<Record<string, unknown>>;
}

Properties

futureHandler: MultipleFutureHandler<Record<string, unknown>>

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

Kos Multiple Future Aware

decorator.

future?: IFutureModel<Record<string, unknown>>

Default future from the handler. Returns the most recently added future or undefined if no futures are active.