Improve types and remove async

This commit is contained in:
Hans Ott 2025-11-03 11:26:10 +01:00
parent 49d31049ac
commit ad9551ca6d
6 changed files with 14 additions and 7 deletions

View file

@ -16,7 +16,7 @@ import { hasDryRunArg } from "../utils/npmCommands.js";
/**
* @typedef {Object} CommandArgumentScanner
* @property {(args: string[]) => Promise<ScanResult[]>} scan
* @property {(args: string[]) => Promise<ScanResult[]> | ScanResult[]} scan
* @property {(args: string[]) => boolean} shouldScan
*/

View file

@ -3,7 +3,7 @@
*/
export function nullScanner() {
return {
scan: async () => [],
scan: () => [],
shouldScan: () => false,
};
}