Socket
Socket
Sign inDemoInstall

@types/fs-extra

Package Overview
Dependencies
Maintainers
1
Versions
76
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/fs-extra - npm Package Compare versions

Comparing version 8.1.2 to 8.1.3

218

fs-extra v8.1/index.d.ts

@@ -56,3 +56,8 @@ // Type definitions for fs-extra 8.1

export function outputFile(file: string, data: any, callback: (err: Error) => void): void;
export function outputFile(file: string, data: any, options: WriteFileOptions | string, callback: (err: Error) => void): void;
export function outputFile(
file: string,
data: any,
options: WriteFileOptions | string,
callback: (err: Error) => void,
): void;
export function outputFileSync(file: string, data: any, options?: WriteFileOptions | string): void;

@@ -121,12 +126,33 @@

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 | undefined; mode?: number | string | undefined; flag?: string | undefined; }): Promise<void>;
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 | undefined; mode?: number | string | undefined; flag?: string | undefined },
): Promise<void>;
export function chmod(path: string | Buffer, mode: string | number, callback: (err: NodeJS.ErrnoException) => void): void;
export function chmod(
path: string | Buffer,
mode: string | number,
callback: (err: NodeJS.ErrnoException) => void,
): void;
export function chmod(path: string | Buffer, mode: string | number): Promise<void>;
export function chown(path: string | Buffer, uid: number, gid: number): Promise<void>;
export function chown(path: string | Buffer, uid: number, gid: number, callback: (err: NodeJS.ErrnoException) => void): void;
export function chown(
path: string | Buffer,
uid: number,
gid: number,
callback: (err: NodeJS.ErrnoException) => void,
): void;

@@ -160,6 +186,15 @@ export function close(fd: number, callback: (err: NodeJS.ErrnoException) => void): void;

export function lchown(path: string | Buffer, uid: number, gid: number, callback: (err: NodeJS.ErrnoException) => void): void;
export function lchown(
path: string | Buffer,
uid: number,
gid: number,
callback: (err: NodeJS.ErrnoException) => void,
): void;
export function lchown(path: string | Buffer, uid: number, gid: number): Promise<void>;
export function link(srcpath: string | Buffer, dstpath: string | Buffer, callback: (err: NodeJS.ErrnoException) => void): void;
export function link(
srcpath: string | Buffer,
dstpath: string | Buffer,
callback: (err: NodeJS.ErrnoException) => void,
): void;
export function link(srcpath: string | Buffer, dstpath: string | Buffer): Promise<void>;

@@ -181,21 +216,56 @@

*/
export function mkdir(path: string | Buffer, mode: number | string, callback: (err: NodeJS.ErrnoException) => void): void;
export function mkdir(
path: string | Buffer,
mode: number | string,
callback: (err: NodeJS.ErrnoException) => void,
): void;
export function mkdir(path: string | Buffer): Promise<void>;
export function open(path: string | Buffer, flags: string | number, callback: (err: NodeJS.ErrnoException, fd: number) => void): void;
export function open(path: string | Buffer, flags: string | number, mode: number, callback: (err: NodeJS.ErrnoException, fd: number) => void): void;
export function open(
path: string | Buffer,
flags: string | number,
callback: (err: NodeJS.ErrnoException, fd: number) => void,
): void;
export function open(
path: string | Buffer,
flags: string | number,
mode: number,
callback: (err: NodeJS.ErrnoException, fd: number) => void,
): void;
export function open(path: string | Buffer, flags: string | number, mode?: number): Promise<number>;
export function read(fd: number, buffer: Buffer, offset: number, length: number, position: number | null,
callback: (err: NodeJS.ErrnoException, bytesRead: number, buffer: Buffer) => void): void;
export function read(fd: number, buffer: Buffer, offset: number, length: number, position: number | null): Promise<ReadResult>;
export function read(
fd: number,
buffer: Buffer,
offset: number,
length: number,
position: number | null,
callback: (err: NodeJS.ErrnoException, bytesRead: number, buffer: Buffer) => void,
): void;
export function read(
fd: number,
buffer: Buffer,
offset: number,
length: number,
position: number | null,
): Promise<ReadResult>;
export function readFile(file: string | Buffer | number, callback: (err: NodeJS.ErrnoException, data: Buffer) => 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 | undefined; } | { encoding: string; flag?: string | undefined; },
callback: (err: NodeJS.ErrnoException, data: Buffer) => void
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>;
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 | 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

@@ -208,7 +278,17 @@ export function readFile(file: string | Buffer | number, encoding: string): Promise<string>;

export function readlink(path: string | Buffer, callback: (err: NodeJS.ErrnoException, linkString: string) => any): void;
export function readlink(
path: string | Buffer,
callback: (err: NodeJS.ErrnoException, linkString: string) => any,
): void;
export function readlink(path: string | Buffer): 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,
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>;

@@ -230,4 +310,13 @@

export function symlink(srcpath: string | Buffer, dstpath: string | Buffer, type: FsSymlinkType | undefined, callback: (err: NodeJS.ErrnoException) => void): void;
export function symlink(srcpath: string | Buffer, dstpath: string | Buffer, callback: (err: NodeJS.ErrnoException) => void): void;
export function symlink(
srcpath: string | Buffer,
dstpath: string | Buffer,
type: FsSymlinkType | undefined,
callback: (err: NodeJS.ErrnoException) => void,
): void;
export function symlink(
srcpath: string | Buffer,
dstpath: string | Buffer,
callback: (err: NodeJS.ErrnoException) => void,
): void;
export function symlink(srcpath: string | Buffer, dstpath: string | Buffer, type?: FsSymlinkType): Promise<void>;

@@ -247,18 +336,75 @@

export function utimes(path: string | Buffer, atime: number, mtime: number, callback: (err: NodeJS.ErrnoException) => void): void;
export function utimes(path: string | Buffer, atime: Date, mtime: Date, callback: (err: NodeJS.ErrnoException) => void): void;
export function utimes(
path: string | Buffer,
atime: number,
mtime: number,
callback: (err: NodeJS.ErrnoException) => void,
): void;
export function utimes(
path: string | Buffer,
atime: Date,
mtime: Date,
callback: (err: NodeJS.ErrnoException) => void,
): void;
export function utimes(path: string | Buffer, atime: number, mtime: number): Promise<void>;
export function utimes(path: string | Buffer, atime: Date, mtime: Date): Promise<void>;
export function write(fd: number, buffer: Buffer, offset: number, length: number, position: number | null, callback: (err: NodeJS.ErrnoException, written: number, buffer: Buffer) => void): void;
export function write(fd: number, buffer: Buffer, offset: number, length: number, callback: (err: NodeJS.ErrnoException, written: number, buffer: Buffer) => void): void;
export function write(fd: number, data: any, callback: (err: NodeJS.ErrnoException, written: number, str: string) => void): void;
export function write(fd: number, data: any, offset: number, callback: (err: NodeJS.ErrnoException, written: number, str: string) => void): void;
export function write(fd: number, data: any, offset: number, encoding: string, callback: (err: NodeJS.ErrnoException, written: number, str: string) => void): void;
export function write(fd: number, buffer: Buffer, offset?: number, length?: number, position?: number | null): Promise<WriteResult>;
export function write(
fd: number,
buffer: Buffer,
offset: number,
length: number,
position: number | null,
callback: (err: NodeJS.ErrnoException, written: number, buffer: Buffer) => void,
): void;
export function write(
fd: number,
buffer: Buffer,
offset: number,
length: number,
callback: (err: NodeJS.ErrnoException, written: number, buffer: Buffer) => void,
): void;
export function write(
fd: number,
data: any,
callback: (err: NodeJS.ErrnoException, written: number, str: string) => void,
): void;
export function write(
fd: number,
data: any,
offset: number,
callback: (err: NodeJS.ErrnoException, written: number, str: string) => void,
): void;
export function write(
fd: number,
data: any,
offset: number,
encoding: string,
callback: (err: NodeJS.ErrnoException, written: number, str: string) => void,
): void;
export function write(
fd: number,
buffer: Buffer,
offset?: number,
length?: number,
position?: number | null,
): Promise<WriteResult>;
export function write(fd: number, data: any, offset?: number, encoding?: string): Promise<WriteResult>;
export function writeFile(file: string | Buffer | number, data: any, callback: (err: NodeJS.ErrnoException) => void): void;
export function writeFile(file: string | Buffer | number, data: any, options?: WriteFileOptions | string): Promise<void>;
export function writeFile(file: string | Buffer | number, data: any, options: WriteFileOptions | string, callback: (err: NodeJS.ErrnoException) => void): void;
export function writeFile(
file: string | Buffer | number,
data: any,
callback: (err: NodeJS.ErrnoException) => void,
): void;
export function writeFile(
file: string | Buffer | number,
data: any,
options?: WriteFileOptions | string,
): Promise<void>;
export function writeFile(
file: string | Buffer | number,
data: any,
options: WriteFileOptions | string,
callback: (err: NodeJS.ErrnoException) => void,
): void;

@@ -265,0 +411,0 @@ /**

6

fs-extra v8.1/package.json
{
"name": "@types/fs-extra",
"version": "8.1.2",
"version": "8.1.3",
"description": "TypeScript definitions for fs-extra",

@@ -60,4 +60,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/fs-extra",

},
"typesPublisherContentHash": "107a19adaecdcfe07a60526d8b470710c4651e59797a159d3dff026589cf69b5",
"typeScriptVersion": "3.6"
"typesPublisherContentHash": "a2fe81658023abe1c4bd42efdf008e0552b3f48173a781c05b2f7472caa94216",
"typeScriptVersion": "4.5"
}

@@ -11,3 +11,3 @@ # Installation

### Additional Details
* Last updated: Tue, 06 Jul 2021 20:33:01 GMT
* Last updated: Thu, 14 Sep 2023 15:26:41 GMT
* Dependencies: [@types/node](https://npmjs.com/package/@types/node)

@@ -14,0 +14,0 @@ * Global values: none

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc