Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@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 4.0.12 to 4.0.13

208

fs-extra v4.0/index.d.ts

@@ -43,3 +43,8 @@ // Type definitions for fs-extra 4.0

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;

@@ -108,12 +113,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;

@@ -147,6 +173,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>;

@@ -168,21 +203,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

@@ -195,10 +265,16 @@ 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,
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
callback: (err: NodeJS.ErrnoException, resolvedPath: string) => any,
): void;

@@ -221,3 +297,8 @@ export function realpath(path: string | Buffer, cache?: { [path: string]: string }): Promise<string>;

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

@@ -237,18 +318,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;

@@ -255,0 +393,0 @@ /**

6

fs-extra v4.0/package.json
{
"name": "@types/fs-extra",
"version": "4.0.12",
"version": "4.0.13",
"description": "TypeScript definitions for fs-extra",

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

},
"typesPublisherContentHash": "08de649b2501128c42d4d03528aa8586389bd7f6cba8b2ea4348c0a37921d8bd",
"typeScriptVersion": "3.6"
"typesPublisherContentHash": "617938ac68911d6a9d15c0448a09f7686fc370b10ebbed1441690cb2a1e9d6b6",
"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