mirror of
https://github.com/AikidoSec/safe-chain.git
synced 2026-05-26 12:10: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
|
|
@ -17,11 +17,18 @@ const state = {
|
|||
packageManagerName: null,
|
||||
};
|
||||
|
||||
/**
|
||||
* @typedef {Object} GetDependencyUpdatesResult
|
||||
* @property {string} name
|
||||
* @property {string} version
|
||||
* @property {string} type
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef {Object} PackageManager
|
||||
* @property {(args: string[]) => Promise<{ status: number }>} runCommand
|
||||
* @property {(args: string[]) => boolean} isSupportedCommand
|
||||
* @property {(args: string[]) => Promise<{name: string, version: string, type: string}[]>} getDependencyUpdatesForCommand
|
||||
* @property {(args: string[]) => Promise<GetDependencyUpdatesResult[]> | GetDependencyUpdatesResult[]} getDependencyUpdatesForCommand
|
||||
*/
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue