9 lines
315 B
TypeScript
9 lines
315 B
TypeScript
|
|
import type { DiscoveryEngine, IDiscoveryCandidate, IDiscoveryContext } from '../core/index.js';
|
||
|
|
|
||
|
|
export const commandDiscover = async (
|
||
|
|
discoveryEngineArg: DiscoveryEngine,
|
||
|
|
contextArg: IDiscoveryContext = {}
|
||
|
|
): Promise<IDiscoveryCandidate[]> => {
|
||
|
|
return discoveryEngineArg.runActiveDiscovery(contextArg);
|
||
|
|
};
|