@types/fs-extra
Advanced tools
Comparing version 4.0.11 to 4.0.12
@@ -107,6 +107,6 @@ // Type definitions for fs-extra 4.0 | ||
export function appendFile(file: string | Buffer | number, data: any, options: { encoding?: string; mode?: number | string; flag?: string; }, | ||
export function appendFile(file: string | Buffer | number, data: any, options: { encoding?: string | undefined; mode?: number | string | undefined; flag?: string | undefined; }, | ||
callback: (err: NodeJS.ErrnoException) => void): void; | ||
export function appendFile(file: string | Buffer | number, data: any, callback: (err: NodeJS.ErrnoException) => void): void; | ||
export function appendFile(file: string | Buffer | number, data: any, options?: { encoding?: string; mode?: number | string; flag?: string; }): Promise<void>; | ||
export function appendFile(file: string | Buffer | number, data: any, options?: { encoding?: string | undefined; mode?: number | string | undefined; flag?: string | undefined; }): Promise<void>; | ||
@@ -179,4 +179,8 @@ export function chmod(path: string | Buffer, mode: string | number, callback: (err: NodeJS.ErrnoException) => void): void; | ||
export function readFile(file: string | Buffer | number, encoding: string, callback: (err: NodeJS.ErrnoException, data: string) => void): void; | ||
export function readFile(file: string | Buffer | number, options: { flag?: string; } | { encoding: string; flag?: string; }, callback: (err: NodeJS.ErrnoException, data: Buffer) => void): void; | ||
export function readFile(file: string | Buffer | number, options: { flag?: string; } | { encoding: string; flag?: string; }): Promise<string>; | ||
export function readFile( | ||
file: string | Buffer | number, | ||
options: { flag?: string | undefined; } | { encoding: string; flag?: string | undefined; }, | ||
callback: (err: NodeJS.ErrnoException, data: Buffer) => void | ||
): void; | ||
export function readFile(file: string | Buffer | number, options: { flag?: string | undefined; } | { encoding: string; flag?: string | undefined; }): Promise<string>; | ||
// tslint:disable-next-line:unified-signatures | ||
@@ -193,3 +197,7 @@ export function readFile(file: string | Buffer | number, encoding: string): Promise<string>; | ||
export function realpath(path: string | Buffer, callback: (err: NodeJS.ErrnoException, resolvedPath: string) => any): void; | ||
export function realpath(path: string | Buffer, cache: { [path: string]: string }, callback: (err: NodeJS.ErrnoException, resolvedPath: string) => any): void; | ||
export function realpath( | ||
path: string | Buffer, | ||
cache: { [path: string]: string }, | ||
callback: (err: NodeJS.ErrnoException, resolvedPath: string) => any | ||
): void; | ||
export function realpath(path: string | Buffer, cache?: { [path: string]: string }): Promise<string>; | ||
@@ -265,38 +273,38 @@ | ||
export interface CopyOptions { | ||
dereference?: boolean; | ||
overwrite?: boolean; | ||
preserveTimestamps?: boolean; | ||
errorOnExist?: boolean; | ||
filter?: CopyFilter; | ||
recursive?: boolean; | ||
dereference?: boolean | undefined; | ||
overwrite?: boolean | undefined; | ||
preserveTimestamps?: boolean | undefined; | ||
errorOnExist?: boolean | undefined; | ||
filter?: CopyFilter | undefined; | ||
recursive?: boolean | undefined; | ||
} | ||
export interface EnsureOptions { | ||
mode?: number; | ||
mode?: number | undefined; | ||
} | ||
export interface MoveOptions { | ||
overwrite?: boolean; | ||
limit?: number; | ||
overwrite?: boolean | undefined; | ||
limit?: number | undefined; | ||
} | ||
export interface ReadOptions { | ||
throws?: boolean; | ||
fs?: object; | ||
throws?: boolean | undefined; | ||
fs?: object | undefined; | ||
reviver?: any; | ||
encoding?: BufferEncoding; | ||
flag?: string; | ||
encoding?: BufferEncoding | undefined; | ||
flag?: string | undefined; | ||
} | ||
export interface WriteFileOptions { | ||
encoding?: BufferEncoding | null; | ||
flag?: string; | ||
mode?: number; | ||
encoding?: BufferEncoding | null | undefined; | ||
flag?: string | undefined; | ||
mode?: number | undefined; | ||
} | ||
export interface WriteOptions extends WriteFileOptions { | ||
fs?: object; | ||
fs?: object | undefined; | ||
replacer?: any; | ||
spaces?: number | string; | ||
EOL?: string; | ||
spaces?: number | string | undefined; | ||
EOL?: string | undefined; | ||
} | ||
@@ -303,0 +311,0 @@ |
{ | ||
"name": "@types/fs-extra", | ||
"version": "4.0.11", | ||
"version": "4.0.12", | ||
"description": "TypeScript definitions for fs-extra", | ||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/fs-extra", | ||
"license": "MIT", | ||
@@ -39,4 +40,4 @@ "contributors": [ | ||
}, | ||
"typesPublisherContentHash": "f3dacbdfbdd7e3e9443a7cb8c8b5221b530a4449d942eed4f4d797394fbee9f8", | ||
"typeScriptVersion": "3.0" | ||
"typesPublisherContentHash": "08de649b2501128c42d4d03528aa8586389bd7f6cba8b2ea4348c0a37921d8bd", | ||
"typeScriptVersion": "3.6" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Tue, 19 May 2020 18:23:54 GMT | ||
* Last updated: Tue, 06 Jul 2021 20:33:01 GMT | ||
* Dependencies: [@types/node](https://npmjs.com/package/@types/node) | ||
@@ -14,0 +14,0 @@ * Global values: none |
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
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
21293
251
0