mirror of
https://github.com/AikidoSec/safe-chain.git
synced 2026-05-26 20:20:49 +00:00
Improve types and remove async
This commit is contained in:
parent
49d31049ac
commit
ad9551ca6d
6 changed files with 14 additions and 7 deletions
|
|
@ -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
|
||||
*/
|
||||
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
*/
|
||||
export function nullScanner() {
|
||||
return {
|
||||
scan: async () => [],
|
||||
scan: () => [],
|
||||
shouldScan: () => false,
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue