Installation
npm install --save @types/lnfs
Summary
This package contains type definitions for lnfs (https://github.com/kevva/lnfs).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/lnfs.
index.d.ts
/// <reference types="node" />
import * as fs from "fs";
export = lnfs;
/**
* Safely force create symlinks.
*
* @param src Path to source file.
* @param dest Path to destination.
* @param type Default: `file`. Is only available on Windows (ignored on other platforms).
*
* @example
* import lnfs = require('lnfs');
*
* lnfs('foo.txt', 'bar.txt').then(() => {
* console.log('Symlink successfully created!');
* });
*/
declare function lnfs(src: string, dest: string, type?: fs.symlink.Type): Promise<string>;
Additional Details
- Last updated: Tue, 07 Nov 2023 09:09:38 GMT
- Dependencies: @types/node
Credits
These definitions were written by BendingBender.