@dependency-owners/package-json-loader
Version:
dependency-owners loader for package.json files
14 lines (13 loc) • 605 B
TypeScript
import type { Dependency } from 'dependency-owners/loader';
/**
* Check if the loader can handle the specified file.
* @param {string} filePath The path of the file to check.
* @returns {Promise<boolean>} True if the file can be loaded, false otherwise.
*/
export declare const canLoad: (filePath: string) => Promise<boolean>;
/**
* Loads the package.json file and returns its dependencies.
* @param {string} filePath The path of the package.json file to load.
* @returns {Promise<Dependency[]>} An array of dependencies.
*/
export declare const load: (filePath: string) => Promise<Dependency[]>;