pnpm
Version:
A fast implementation of npm install
7 lines (6 loc) • 366 B
TypeScript
export declare type SymlinkType = 'junction' | 'dir';
/**
* Creates a symlink. Re-link if a symlink already exists at the supplied
* srcPath. API compatible with [`fs#symlink`](https://nodejs.org/api/fs.html#fs_fs_symlink_srcpath_dstpath_type_callback).
*/
export default function forceSymlink(srcPath: string, dstPath: string, type: SymlinkType): Promise<void>;