3.0.3 • Published 2 years ago

@types/lnfs v3.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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

// Type definitions for lnfs 3.0
// Project: https://github.com/kevva/lnfs
// Definitions by: BendingBender <https://github.com/bendingbender>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

/// <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: Sun, 24 Oct 2021 19:31:20 GMT
  • Dependencies: @types/node
  • Global values: none

Credits

These definitions were written by BendingBender.

3.0.3

2 years ago

3.0.2

2 years ago

3.0.1

2 years ago

3.0.0

4 years ago