@types/graceful-fs
Advanced tools
Comparing version 4.1.3 to 4.1.4
@@ -10,4 +10,2 @@ // Type definitions for graceful-fs 4.1 | ||
import * as fs from 'fs'; | ||
export * from 'fs'; | ||
@@ -22,61 +20,2 @@ | ||
*/ | ||
export function gracefulify<T>(fsModule: T): T & Lutimes; | ||
export interface Lutimes { | ||
/** | ||
* Asynchronously change file timestamps of the file referenced by the supplied path. | ||
* If path refers to a symbolic link, then the link is not dereferenced: instead, the timestamps | ||
* of the symbolic link are changed. | ||
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol. | ||
* @param atime The last access time. If a string is provided, it will be coerced to number. | ||
* @param mtime The last modified time. If a string is provided, it will be coerced to number. | ||
*/ | ||
lutimes: typeof fs.lutimes; | ||
/** | ||
* Synchronously change file timestamps of the file referenced by the supplied path. | ||
* If path refers to a symbolic link, then the link is not dereferenced: instead, the timestamps | ||
* of the symbolic link are changed. | ||
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol. | ||
* @param atime The last access time. If a string is provided, it will be coerced to number. | ||
* @param mtime The last modified time. If a string is provided, it will be coerced to number. | ||
*/ | ||
lutimesSync: typeof fs.lutimesSync; | ||
} | ||
declare module 'fs' { | ||
/** | ||
* Asynchronously change file timestamps of the file referenced by the supplied path. | ||
* If path refers to a symbolic link, then the link is not dereferenced: instead, the timestamps | ||
* of the symbolic link are changed. | ||
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol. | ||
* @param atime The last access time. If a string is provided, it will be coerced to number. | ||
* @param mtime The last modified time. If a string is provided, it will be coerced to number. | ||
*/ | ||
function lutimes(path: PathLike, | ||
atime: string | number | Date, | ||
mtime: string | number | Date, | ||
callback?: (err: NodeJS.ErrnoException | null) => void): void; | ||
// NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime. | ||
namespace lutimes { | ||
/** | ||
* Asynchronously change file timestamps of the file referenced by the supplied path. | ||
* If path refers to a symbolic link, then the link is not dereferenced: instead, the timestamps | ||
* of the symbolic link are changed. | ||
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol. | ||
* @param atime The last access time. If a string is provided, it will be coerced to number. | ||
* @param mtime The last modified time. If a string is provided, it will be coerced to number. | ||
*/ | ||
function __promisify__(path: PathLike, atime: string | number | Date, mtime: string | number | Date): Promise<void>; | ||
} | ||
/** | ||
* Synchronously change file timestamps of the file referenced by the supplied path. | ||
* If path refers to a symbolic link, then the link is not dereferenced: instead, the timestamps | ||
* of the symbolic link are changed. | ||
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol. | ||
* @param atime The last access time. If a string is provided, it will be coerced to number. | ||
* @param mtime The last modified time. If a string is provided, it will be coerced to number. | ||
*/ | ||
function lutimesSync(path: PathLike, atime: string | number | Date, mtime: string | number | Date): void; | ||
} | ||
export function gracefulify<T>(fsModule: T): T; |
{ | ||
"name": "@types/graceful-fs", | ||
"version": "4.1.3", | ||
"version": "4.1.4", | ||
"description": "TypeScript definitions for graceful-fs", | ||
@@ -19,6 +19,7 @@ "license": "MIT", | ||
"main": "", | ||
"types": "index", | ||
"types": "index.d.ts", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git" | ||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", | ||
"directory": "types/graceful-fs" | ||
}, | ||
@@ -29,4 +30,4 @@ "scripts": {}, | ||
}, | ||
"typesPublisherContentHash": "7e459d70acc49c2972a15118724b3a8c901016e65a92fdb945c73b657dfcaf2d", | ||
"typeScriptVersion": "2.2" | ||
"typesPublisherContentHash": "056a1225be9e1e75f3159d214868c57eeb9f4c81385dcac88a3c56971b088b9d", | ||
"typeScriptVersion": "3.2" | ||
} |
@@ -5,13 +5,13 @@ # Installation | ||
# Summary | ||
This package contains type definitions for graceful-fs ( https://github.com/isaacs/node-graceful-fs ). | ||
This package contains type definitions for graceful-fs (https://github.com/isaacs/node-graceful-fs). | ||
# Details | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/graceful-fs | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/graceful-fs. | ||
Additional Details | ||
* Last updated: Wed, 13 Feb 2019 18:42:10 GMT | ||
* Dependencies: @types/node | ||
### Additional Details | ||
* Last updated: Wed, 21 Oct 2020 21:01:39 GMT | ||
* Dependencies: [@types/node](https://npmjs.com/package/@types/node) | ||
* Global values: none | ||
# Credits | ||
These definitions were written by Bart van der Schoor <https://github.com/Bartvds>, BendingBender <https://github.com/BendingBender>. | ||
These definitions were written by [Bart van der Schoor](https://github.com/Bartvds), and [BendingBender](https://github.com/BendingBender). |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3503
16