Package Exports
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@types/touch) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
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: Tue, 12 Sep 2023 12:34:48 GMT
- Dependencies: @types/node
- Global values: none
Credits
These definitions were written by Mizunashi Mana, and BendingBender.