@types/node 18.0.0 → 18.0.1
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/promises.d.ts +1 -1
- node/fs.d.ts +3 -3
- 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: Sun, 03 Jul 2022 13:02:19 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/promises.d.ts
CHANGED
|
@@ -1107,7 +1107,7 @@ declare module 'fs/promises' {
|
|
|
1107
1107
|
* @param dest destination path to copy to.
|
|
1108
1108
|
* @return Fulfills with `undefined` upon success.
|
|
1109
1109
|
*/
|
|
1110
|
-
function cp(source: string, destination: string, opts?: CopyOptions): Promise<void>;
|
|
1110
|
+
function cp(source: string | URL, destination: string | URL, opts?: CopyOptions): Promise<void>;
|
|
1111
1111
|
}
|
|
1112
1112
|
declare module 'node:fs/promises' {
|
|
1113
1113
|
export * from 'fs/promises';
|
node/fs.d.ts
CHANGED
|
@@ -3838,8 +3838,8 @@ declare module 'fs' {
|
|
|
3838
3838
|
* @param src source path to copy.
|
|
3839
3839
|
* @param dest destination path to copy to.
|
|
3840
3840
|
*/
|
|
3841
|
-
export function cp(source: string, destination: string, callback: (err: NodeJS.ErrnoException | null) => void): void;
|
|
3842
|
-
export function cp(source: string, destination: string, opts: CopyOptions, callback: (err: NodeJS.ErrnoException | null) => void): void;
|
|
3841
|
+
export function cp(source: string | URL, destination: string | URL, callback: (err: NodeJS.ErrnoException | null) => void): void;
|
|
3842
|
+
export function cp(source: string | URL, destination: string | URL, opts: CopyOptions, callback: (err: NodeJS.ErrnoException | null) => void): void;
|
|
3843
3843
|
/**
|
|
3844
3844
|
* Synchronously copies the entire directory structure from `src` to `dest`,
|
|
3845
3845
|
* including subdirectories and files.
|
|
@@ -3851,7 +3851,7 @@ declare module 'fs' {
|
|
|
3851
3851
|
* @param src source path to copy.
|
|
3852
3852
|
* @param dest destination path to copy to.
|
|
3853
3853
|
*/
|
|
3854
|
-
export function cpSync(source: string, destination: string, opts?: CopyOptions): void;
|
|
3854
|
+
export function cpSync(source: string | URL, destination: string | URL, opts?: CopyOptions): void;
|
|
3855
3855
|
}
|
|
3856
3856
|
declare module 'node:fs' {
|
|
3857
3857
|
export * from 'fs';
|
node/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "18.0.
|
|
3
|
+
"version": "18.0.1",
|
|
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": "54636f01c874a366065f9b55b2a2d8bac9b0b654b04e244404745c7e0506e5f7",
|
|
224
224
|
"typeScriptVersion": "4.0"
|
|
225
225
|
}
|