@types/node 18.6.1 → 18.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- node/README.md +1 -1
- node/fs.d.ts +21 -7
- node/package.json +2 -2
node/README.md
CHANGED
|
@@ -8,7 +8,7 @@ This package contains type definitions for Node.js (https://nodejs.org/).
|
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Thu, 28 Jul 2022 02:32:30 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`, `structuredClone`
|
|
14
14
|
|
node/fs.d.ts
CHANGED
|
@@ -3791,7 +3791,7 @@ declare module 'fs' {
|
|
|
3791
3791
|
export interface StatSyncOptions extends StatOptions {
|
|
3792
3792
|
throwIfNoEntry?: boolean | undefined;
|
|
3793
3793
|
}
|
|
3794
|
-
|
|
3794
|
+
interface CopyOptionsBase {
|
|
3795
3795
|
/**
|
|
3796
3796
|
* Dereference symlinks
|
|
3797
3797
|
* @default false
|
|
@@ -3803,11 +3803,6 @@ declare module 'fs' {
|
|
|
3803
3803
|
* @default false
|
|
3804
3804
|
*/
|
|
3805
3805
|
errorOnExist?: boolean;
|
|
3806
|
-
/**
|
|
3807
|
-
* Function to filter copied files/directories. Return
|
|
3808
|
-
* `true` to copy the item, `false` to ignore it.
|
|
3809
|
-
*/
|
|
3810
|
-
filter?(source: string, destination: string): boolean;
|
|
3811
3806
|
/**
|
|
3812
3807
|
* Overwrite existing file or directory. _The copy
|
|
3813
3808
|
* operation will ignore errors if you set this to false and the destination
|
|
@@ -3826,6 +3821,25 @@ declare module 'fs' {
|
|
|
3826
3821
|
* @default false
|
|
3827
3822
|
*/
|
|
3828
3823
|
recursive?: boolean;
|
|
3824
|
+
/**
|
|
3825
|
+
* When true, path resolution for symlinks will be skipped
|
|
3826
|
+
* @default false
|
|
3827
|
+
*/
|
|
3828
|
+
verbatimSymlinks?: boolean;
|
|
3829
|
+
}
|
|
3830
|
+
export interface CopyOptions extends CopyOptionsBase {
|
|
3831
|
+
/**
|
|
3832
|
+
* Function to filter copied files/directories. Return
|
|
3833
|
+
* `true` to copy the item, `false` to ignore it.
|
|
3834
|
+
*/
|
|
3835
|
+
filter?(source: string, destination: string): boolean | Promise<boolean>;
|
|
3836
|
+
}
|
|
3837
|
+
export interface CopySyncOptions extends CopyOptionsBase {
|
|
3838
|
+
/**
|
|
3839
|
+
* Function to filter copied files/directories. Return
|
|
3840
|
+
* `true` to copy the item, `false` to ignore it.
|
|
3841
|
+
*/
|
|
3842
|
+
filter?(source: string, destination: string): boolean;
|
|
3829
3843
|
}
|
|
3830
3844
|
/**
|
|
3831
3845
|
* Asynchronously copies the entire directory structure from `src` to `dest`,
|
|
@@ -3851,7 +3865,7 @@ declare module 'fs' {
|
|
|
3851
3865
|
* @param src source path to copy.
|
|
3852
3866
|
* @param dest destination path to copy to.
|
|
3853
3867
|
*/
|
|
3854
|
-
export function cpSync(source: string | URL, destination: string | URL, opts?:
|
|
3868
|
+
export function cpSync(source: string | URL, destination: string | URL, opts?: CopySyncOptions): void;
|
|
3855
3869
|
}
|
|
3856
3870
|
declare module 'node:fs' {
|
|
3857
3871
|
export * from 'fs';
|
node/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "18.6.
|
|
3
|
+
"version": "18.6.2",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
|
6
6
|
"license": "MIT",
|
|
@@ -220,6 +220,6 @@
|
|
|
220
220
|
},
|
|
221
221
|
"scripts": {},
|
|
222
222
|
"dependencies": {},
|
|
223
|
-
"typesPublisherContentHash": "
|
|
223
|
+
"typesPublisherContentHash": "a7df569b45848b5af802c513c0bac5e342b40f2297a1492597939b74c0033e42",
|
|
224
224
|
"typeScriptVersion": "4.0"
|
|
225
225
|
}
|