@coat/cli
Version:
TODO: See #3
16 lines (15 loc) • 862 B
TypeScript
import { CoatGlobalLockfile, CoatGlobalLockfileStrict, CoatLocalLockfile, CoatLocalLockfileStrict } from "../types/coat-lockfiles";
/**
* Updates a local lockfile and returns the updated copy
*
* @param currentLockfile The current local lockfile
* @param newLockfile New lockfile properties, will be merged with the current lockfile
*/
export declare function updateLocalLockfile(currentLockfile: CoatLocalLockfileStrict, newLockfile: Partial<CoatLocalLockfile>): CoatLocalLockfileStrict;
/**
* Updates a global lockfile and returns the updated copy
*
* @param currentLockfile The current global lockfile
* @param newLockfile New lockfile properties, will be merged with the current lockfile
*/
export declare function updateGlobalLockfile(currentLockfile: CoatGlobalLockfileStrict, newLockfile: Partial<CoatGlobalLockfile>): CoatGlobalLockfileStrict;