Skip to content

Commit

Permalink
docs(node): add @SInCE comments for URL and URLSearchParam globals
Browse files Browse the repository at this point in the history
  • Loading branch information
antongolub committed Jan 18, 2022
1 parent bfc566a commit 78783ea
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions types/node/url.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -859,7 +859,17 @@ declare module 'url' {
import { URL as _URL, URLSearchParams as _URLSearchParams } from 'url';
global {
interface Global {
/**
* `URL` class is global.
* https://nodejs.org/api/url.html#the-whatwg-url-api
* @since v10.0.0
*/
URL: typeof _URL;
/**
* `URLSearchParams` class is global.
* https://nodejs.org/api/url.html#class-urlsearchparams
* @since v10.0.0
*/
URLSearchParams: typeof _URLSearchParams;
}
interface URLSearchParams extends _URLSearchParams {}
Expand Down
10 changes: 10 additions & 0 deletions types/node/v16/url.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -819,7 +819,17 @@ declare module 'url' {
import { URL as _URL, URLSearchParams as _URLSearchParams } from 'url';
global {
interface Global {
/**
* `URL` class is global.
* https://nodejs.org/api/url.html#the-whatwg-url-api
* @since v10.0.0
*/
URL: typeof _URL;
/**
* `URLSearchParams` class is global.
* https://nodejs.org/api/url.html#class-urlsearchparams
* @since v10.0.0
*/
URLSearchParams: typeof _URLSearchParams;
}
interface URLSearchParams extends _URLSearchParams {}
Expand Down

0 comments on commit 78783ea

Please sign in to comment.