@types/ncp
TypeScript definitions for ncp v0.5.1
Last updated 10 years ago by types .
MIT · Original npm · Tarball · package.json
$ cnpm install @types/ncp 
SYNC missed versions from official npm registry.

Installation

npm install --save @types/ncp

Summary

This package contains type definitions for ncp (https://github.com/AvianFlu/ncp).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ncp.

index.d.ts

/// <reference types="node" />
import * as fs from "fs";

declare namespace ncp {
    interface File {
        name: string;
        mode: number;

        /** Accessed time */
        atime: Date;

        /** Modified time */
        mtime: Date;
    }

    interface Options {
        filter?: RegExp | ((filename: string) => boolean) | undefined;
        transform?: ((read: NodeJS.ReadableStream, write: NodeJS.WritableStream, file: File) => void) | undefined;
        clobber?: boolean | undefined;
        dereference?: boolean | undefined;
        stopOnErr?: boolean | undefined;
        errs?: fs.PathLike | undefined;
        limit?: number | undefined;
    }
}

declare const ncp: {
    (source: string, destination: string, callback: (err: Error[] | null) => void): void;
    (
        source: string,
        destination: string,
        options: ncp.Options & { stopOnErr: true },
        callback: (err: Error | null) => void,
    ): void;
    (
        source: string,
        destination: string,
        options: ncp.Options & { errs?: undefined },
        callback: (err: Error[] | null) => void,
    ): void;
    (
        source: string,
        destination: string,
        options: ncp.Options & { errs: fs.PathLike },
        callback: (err: fs.WriteStream | null) => void,
    ): void;
    (
        source: string,
        destination: string,
        options: ncp.Options,
        callback: (err: Error | Error[] | fs.WriteStream | null) => void,
    ): void;

    ncp: typeof ncp;

    /**
     * **NOTE:** This function provides design-time support for util.promisify.
     *
     * It does not exist at runtime.
     */
    __promisify__(source: string, destination: string, options?: ncp.Options): Promise<void>;
};

export = ncp;

Additional Details

  • Last updated: Tue, 07 Nov 2023 09:09:39 GMT
  • Dependencies: @types/node

Credits

These definitions were written by Bart van der Schoor, Benoit Lemaire, and ExE Boss.

Current Tags

  • 2.0.8                                ...           latest (2 years ago)
  • 2.0.3                                ...           ts2.0 (6 years ago)
  • 2.0.3                                ...           ts2.1 (6 years ago)
  • 2.0.3                                ...           ts2.2 (6 years ago)
  • 2.0.3                                ...           ts2.3 (6 years ago)
  • 2.0.3                                ...           ts2.4 (6 years ago)
  • 2.0.3                                ...           ts2.5 (6 years ago)
  • 2.0.3                                ...           ts2.6 (6 years ago)
  • 2.0.3                                ...           ts2.7 (6 years ago)
  • 2.0.3                                ...           ts2.8 (6 years ago)
  • 2.0.3                                ...           ts2.9 (6 years ago)
  • 2.0.4                                ...           ts3.0 (6 years ago)
  • 2.0.4                                ...           ts3.1 (6 years ago)
  • 2.0.4                                ...           ts3.2 (6 years ago)
  • 2.0.4                                ...           ts3.3 (6 years ago)
  • 2.0.4                                ...           ts3.4 (6 years ago)
  • 2.0.4                                ...           ts3.5 (6 years ago)
  • 2.0.5                                ...           ts3.6 (5 years ago)
  • 2.0.5                                ...           ts3.7 (5 years ago)
  • 2.0.5                                ...           ts3.8 (5 years ago)
  • 2.0.5                                ...           ts3.9 (5 years ago)
  • 2.0.5                                ...           ts4.0 (5 years ago)
  • 2.0.5                                ...           ts4.1 (5 years ago)
  • 2.0.5                                ...           ts4.2 (5 years ago)
  • 2.0.5                                ...           ts4.3 (5 years ago)
  • 2.0.5                                ...           ts4.4 (5 years ago)
  • 2.0.8                                ...           ts4.5 (2 years ago)
  • 2.0.8                                ...           ts4.6 (2 years ago)
  • 2.0.8                                ...           ts4.7 (2 years ago)
  • 2.0.8                                ...           ts4.8 (2 years ago)
  • 2.0.8                                ...           ts4.9 (2 years ago)
  • 2.0.8                                ...           ts5.0 (2 years ago)
  • 2.0.8                                ...           ts5.1 (2 years ago)
  • 2.0.8                                ...           ts5.2 (2 years ago)
  • 2.0.8                                ...           ts5.3 (2 years ago)
  • 2.0.8                                ...           ts5.4 (2 years ago)
  • 2.0.8                                ...           ts5.5 (2 years ago)
  • 2.0.8                                ...           ts5.6 (2 years ago)
  • 2.0.8                                ...           ts5.7 (2 years ago)
  • 2.0.8                                ...           ts5.8 (2 years ago)
  • 2.0.8                                ...           ts5.9 (2 years ago)

20 Versions

  • 2.0.8                                ...           2 years ago
  • 2.0.7                                ...           2 years ago
  • 2.0.6                                ...           3 years ago
  • 2.0.5                                ...           5 years ago
  • 2.0.4                                ...           6 years ago
  • 2.0.3                                ...           6 years ago
  • 2.0.2                                ...           7 years ago
  • 2.0.1                                ...           9 years ago
  • 2.0.0                                ...           9 years ago
  • 0.5.29                                ...           10 years ago
  • 0.5.28                                ...           10 years ago
  • 0.5.27-alpha                                ...           10 years ago
  • 0.5.26-alpha                                ...           10 years ago
  • 0.5.25-alpha                                ...           10 years ago
  • 0.5.24-alpha                                ...           10 years ago
  • 0.5.23-alpha                                ...           10 years ago
  • 0.5.22-alpha                                ...           10 years ago
  • 0.5.21-alpha                                ...           10 years ago
  • 0.5.16-alpha                                ...           10 years ago
  • 0.5.15-alpha                                ...           10 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 1
Last Month 1
Dependencies (1)
Dev Dependencies (0)
None
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |