getMatchedResource
Callable
Type parameters
- T
Parameters
resources: ResourceEntry<T>[]
The resource list.
envConfig: Record<string, string>
Environment variable of current system.
weights: Record<string, number> = null
taskId: string = 'select-task'
Returns T
Matched asset.
Get the matched record from the resource list.