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

Installation

npm install --save @types/touch

Summary

This package contains type definitions for touch (https://github.com/isaacs/node-touch).

Details

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

index.d.ts

// Type definitions for touch 3.1
// Project: https://github.com/isaacs/node-touch
// Definitions by: Mizunashi Mana <https://github.com/mizunashi-mana>
//                 BendingBender <https://github.com/BendingBender>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3

/// <reference types="node" />

declare function touch<T = void>(filename: string, cb?: (err?: NodeJS.ErrnoException) => T): Promise<T>;
declare function touch<T = void>(filename: string, options?: touch.Options, cb?: (err?: NodeJS.ErrnoException) => T): Promise<T>;

declare namespace touch {
    interface Options {
        force?: boolean | undefined;
        time?: Date | string | number | undefined;
        atime?: boolean | Date | undefined;
        mtime?: boolean | Date | undefined;
        ref?: string | undefined;
        nocreate?: boolean | undefined;
        closeAfter?: boolean | undefined;
    }

    function sync(filename: string, options?: Options): void;

    function ftouch<T = void>(fd: number, cb?: (err?: NodeJS.ErrnoException) => T): Promise<T>;
    function ftouch<T = void>(fd: number, options?: Options, cb?: (err?: NodeJS.ErrnoException) => T): Promise<T>;

    function ftouchSync(fd: number, options?: Options): void;
}

export = touch;

Additional Details

  • Last updated: Fri, 02 Jul 2021 19:37:15 GMT
  • Dependencies: @types/node
  • Global values: none

Credits

These definitions were written by Mizunashi Mana, and BendingBender.

Current Tags

  • 3.1.2                                ...           latest (5 years ago)
  • 0.0.1                                ...           ts2.0 (10 years ago)
  • 0.0.1                                ...           ts2.1 (10 years ago)
  • 0.0.1                                ...           ts2.2 (10 years ago)
  • 3.1.1                                ...           ts2.3 (8 years ago)
  • 3.1.1                                ...           ts2.4 (8 years ago)
  • 3.1.1                                ...           ts2.5 (8 years ago)
  • 3.1.1                                ...           ts2.6 (8 years ago)
  • 3.1.1                                ...           ts2.7 (8 years ago)
  • 3.1.1                                ...           ts2.8 (8 years ago)
  • 3.1.1                                ...           ts2.9 (8 years ago)
  • 3.1.1                                ...           ts3.0 (8 years ago)
  • 3.1.1                                ...           ts3.1 (8 years ago)
  • 3.1.1                                ...           ts3.2 (8 years ago)
  • 3.1.1                                ...           ts3.3 (8 years ago)
  • 3.1.1                                ...           ts3.4 (8 years ago)
  • 3.1.1                                ...           ts3.5 (8 years ago)
  • 3.1.2                                ...           ts3.6 (5 years ago)
  • 3.1.2                                ...           ts3.7 (5 years ago)
  • 3.1.2                                ...           ts3.8 (5 years ago)
  • 3.1.2                                ...           ts3.9 (5 years ago)
  • 3.1.2                                ...           ts4.0 (5 years ago)
  • 3.1.2                                ...           ts4.1 (5 years ago)
  • 3.1.2                                ...           ts4.2 (5 years ago)
  • 3.1.2                                ...           ts4.3 (5 years ago)
  • 3.1.2                                ...           ts4.4 (5 years ago)
  • 3.1.2                                ...           ts4.5 (5 years ago)
  • 3.1.2                                ...           ts4.6 (5 years ago)

4 Versions

  • 3.1.2                                ...           5 years ago
  • 3.1.0                                ...           9 years ago
  • 3.1.1                                ...           8 years ago
  • 0.0.1                                ...           10 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 1
Last Month 1
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |