Type annotation

This commit is contained in:
Enrico Ros
2025-11-17 03:58:40 -08:00
parent f9c3558975
commit b43c49cd64
@@ -64,7 +64,7 @@ function createDispatch<T>(dispatch: ListModelsDispatch<T>): ListModelsDispatch<
// -- Specialized Implementations -- Core of Server-side LLM Model Listing abstraction --
export async function listModelsRunDispatch(access: AixAPI_Access, signal?: AbortSignal) {
export async function listModelsRunDispatch(access: AixAPI_Access, signal?: AbortSignal): Promise<ModelDescriptionSchema[]> {
const dispatch = _listModelsCreateDispatch(access, signal);
const wireModels = await dispatch.fetchModels();
return dispatch.convertToDescriptions(wireModels);