@types/node 17.0.13 → 17.0.14
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/package.json +2 -2
- node/url.d.ts +27 -1
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: Tue, 01 Feb 2022 08:31:29 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`
|
|
14
14
|
|
node/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "17.0.
|
|
3
|
+
"version": "17.0.14",
|
|
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": "6e8e93afce4fec9d11be4e66edf9445da476955206bcb7287f6832ff443d5f7c",
|
|
224
224
|
"typeScriptVersion": "3.8"
|
|
225
225
|
}
|
node/url.d.ts
CHANGED
|
@@ -778,7 +778,7 @@ declare module 'url' {
|
|
|
778
778
|
* @param fn Invoked for each name-value pair in the query
|
|
779
779
|
* @param thisArg To be used as `this` value for when `fn` is called
|
|
780
780
|
*/
|
|
781
|
-
forEach<TThis = this>(callback: (this: TThis, value: string, name: string, searchParams:
|
|
781
|
+
forEach<TThis = this>(callback: (this: TThis, value: string, name: string, searchParams: URLSearchParams) => void, thisArg?: TThis): void;
|
|
782
782
|
/**
|
|
783
783
|
* Returns the value of the first name-value pair whose name is `name`. If there
|
|
784
784
|
* are no such pairs, `null` is returned.
|
|
@@ -855,6 +855,32 @@ declare module 'url' {
|
|
|
855
855
|
values(): IterableIterator<string>;
|
|
856
856
|
[Symbol.iterator](): IterableIterator<[string, string]>;
|
|
857
857
|
}
|
|
858
|
+
|
|
859
|
+
import { URL as _URL, URLSearchParams as _URLSearchParams } from 'url';
|
|
860
|
+
global {
|
|
861
|
+
interface URLSearchParams extends _URLSearchParams {}
|
|
862
|
+
interface URL extends _URL {}
|
|
863
|
+
interface Global {
|
|
864
|
+
URL: typeof _URL;
|
|
865
|
+
URLSearchParams: typeof _URLSearchParams;
|
|
866
|
+
}
|
|
867
|
+
/**
|
|
868
|
+
* `URL` class is a global reference for `require('url').URL`
|
|
869
|
+
* https://nodejs.org/api/url.html#the-whatwg-url-api
|
|
870
|
+
* @since v10.0.0
|
|
871
|
+
*/
|
|
872
|
+
var URL: typeof globalThis extends { webkitURL: infer URL } ? URL : typeof _URL;
|
|
873
|
+
/**
|
|
874
|
+
* `URLSearchParams` class is a global reference for `require('url').URLSearchParams`
|
|
875
|
+
* https://nodejs.org/api/url.html#class-urlsearchparams
|
|
876
|
+
* @since v10.0.0
|
|
877
|
+
*/
|
|
878
|
+
var URLSearchParams: {
|
|
879
|
+
prototype: URLSearchParams;
|
|
880
|
+
new(init?: string[][] | Record<string, string> | string | URLSearchParams): URLSearchParams;
|
|
881
|
+
toString(): string;
|
|
882
|
+
};
|
|
883
|
+
}
|
|
858
884
|
}
|
|
859
885
|
declare module 'node:url' {
|
|
860
886
|
export * from 'url';
|