Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -1171,6 +1171,7 @@
/types/critters-webpack-plugin/ @JuanJoseGonGi @peterblazejewicz
/types/crocks/ @jakubbarczyk
/types/cronitor/ @alexpresthus
/types/cronofy-elements/ @agarciabz
/types/croppie/ @connor4312 @dklmuc @sarunint @knuthelgesen
/types/cross-domain-utils/ @ANovokmet
/types/cross-spawn/ @Alorel @ExE-Boss
Expand Down Expand Up @@ -2974,7 +2975,7 @@
/types/gtag.js/ @rokt33r @KsAkira10
/types/gtmetrix/ @peterblazejewicz
/types/guacamole-client/ @KonstantinSimeonov @vakrilov @PetarMetodiev
/types/guacamole-common-js/ @KonstantinSimeonov @vakrilov @PetarMetodiev @Talent30 @linn-gith
/types/guacamole-common-js/ @KonstantinSimeonov @vakrilov @PetarMetodiev @linn-gith
/types/guid/ @maroy1986
/types/gulp/ @GiedriusGrabauskas @pulsovi
/types/gulp-angular-protractor/ @akwiatek
Expand Down Expand Up @@ -4853,6 +4854,7 @@
/types/microsoftteams/ @WrathOfZombies @ydogandjiev @orty
/types/microtime/ @vincekovacs
/types/midi/ @mattsoulanille
/types/midtrans-client/ @MystiaFin
/types/migrate-mongo/ @amitbeck
/types/millisecond/ @xeoneux
/types/mime-db/ @AJamesPhillips @LinusU @peterblazejewicz @bjohansebas
Expand Down Expand Up @@ -5078,7 +5080,6 @@
/types/netease-captcha/ @norubidium
/types/netgear/ @k-yle
/types/netlify-auth-providers/ @drazisil
/types/netlify-identity-widget/ @nkprince007
/types/netmask/ @mhfrantz @JanST123 @yoursunny
/types/network-interfaces/ @anderswestberg
/types/neverbounce/ @georgenov
Expand Down Expand Up @@ -5324,6 +5325,7 @@
/types/nuclear-js/ @patlillis
/types/nuclear-js-react-addons-chefsplate/ @patlillis
/types/num2fraction/ @sergey12313
/types/number-abbreviate/ @altie122
/types/number-is-nan/ @mhegazy @peterblazejewicz
/types/number-to-words/ @frederickfogerty
/types/numeral/ @vbortone @klujanrosas @KarlosQ @peterblazejewicz
Expand Down Expand Up @@ -7929,6 +7931,7 @@
/types/try-catch/ @coderaiser
/types/try-to-catch/ @coderaiser
/types/tryer/ @bengry
/types/tryghost__admin-api/ @josejj10
/types/tryghost__content-api/ @knguyen0125 @antonve @maveric1977
/types/ts-nameof/ @dsherret
/types/tspromise/ @soywiz
Expand Down Expand Up @@ -8108,7 +8111,7 @@
/types/uswds__uswds/ @lunchbreakdev @aduth
/types/utf-8-validate/ @OpportunityLiu
/types/utf8/ @peterblazejewicz
/types/utif/ @smajl @nkprince007 @massic80
/types/utif/ @smajl @massic80
/types/util-deprecate/ @BendingBender
/types/util.promisify/ @adamvoss @dex4er @ExE-Boss @ljharb
/types/utils-merge/ @chrootsu
Expand Down Expand Up @@ -8245,7 +8248,6 @@
/types/vue-tel-input/ @suryadana
/types/vue-template-es2015-compiler/ @iam-medvedev
/types/vue-the-mask/ @domschmidt
/types/vue-writer/ @BekYahia
/types/vue2-datepicker/ @ChristianStornowski
/types/vue2-editor/ @suryadana
/types/vue2-hammer/ @ptandler
Expand Down
2 changes: 1 addition & 1 deletion types/node/v22/buffer.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ declare module "buffer" {
type?: string | undefined;
}
/**
* A [`Blob`](https://developer.mozilla.org/en-US/docs/Web/API/Blob) encapsulates immutable, raw data that can be safely shared across
* A `Blob` encapsulates immutable, raw data that can be safely shared across
* multiple worker threads.
* @since v15.7.0, v14.18.0
*/
Expand Down
2 changes: 1 addition & 1 deletion types/node/v22/child_process.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* the parent Node.js process and the spawned subprocess. These pipes have
* limited (and platform-specific) capacity. If the subprocess writes to
* stdout in excess of that limit without the output being captured, the
* subprocess blocks waiting for the pipe buffer to accept more data. This is
* subprocess blocks, waiting for the pipe buffer to accept more data. This is
* identical to the behavior of pipes in the shell. Use the `{ stdio: 'ignore' }` option if the output will not be consumed.
*
* The command lookup is performed using the `options.env.PATH` environment
Expand Down
51 changes: 17 additions & 34 deletions types/node/v22/fs.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -329,14 +329,15 @@ declare module "fs" {
*/
readSync(): Dirent | null;
/**
* Calls `dir.close()` and returns a promise that fulfills when the
* dir is closed.
* Calls `dir.close()` if the directory handle is open, and returns a promise that
* fulfills when disposal is complete.
* @since v22.17.0
* @experimental
*/
[Symbol.asyncDispose](): Promise<void>;
/**
* Calls `dir.closeSync()` and returns `undefined`.
* Calls `dir.closeSync()` if the directory handle is open, and returns
* `undefined`.
* @since v22.17.0
* @experimental
*/
Expand Down Expand Up @@ -3340,6 +3341,12 @@ declare module "fs" {
persistent?: boolean | undefined;
recursive?: boolean | undefined;
}
export interface WatchOptionsWithBufferEncoding extends WatchOptions {
encoding: "buffer";
}
export interface WatchOptionsWithStringEncoding extends WatchOptions {
encoding?: BufferEncoding | undefined;
}
export type WatchEventType = "rename" | "change";
export type WatchListener<T> = (event: WatchEventType, filename: T | null) => void;
export type StatsListener = (curr: Stats, prev: Stats) => void;
Expand All @@ -3366,44 +3373,20 @@ declare module "fs" {
*/
export function watch(
filename: PathLike,
options:
| (WatchOptions & {
encoding: "buffer";
})
| "buffer",
listener?: WatchListener<Buffer>,
options?: WatchOptionsWithStringEncoding | BufferEncoding | null,
listener?: WatchListener<string>,
): FSWatcher;
/**
* Watch for changes on `filename`, where `filename` is either a file or a directory, returning an `FSWatcher`.
* @param filename A path to a file or directory. If a URL is provided, it must use the `file:` protocol.
* @param options Either the encoding for the filename provided to the listener, or an object optionally specifying encoding, persistent, and recursive options.
* If `encoding` is not supplied, the default of `'utf8'` is used.
* If `persistent` is not supplied, the default of `true` is used.
* If `recursive` is not supplied, the default of `false` is used.
*/
export function watch(
filename: PathLike,
options?: WatchOptions | BufferEncoding | null,
listener?: WatchListener<string>,
options: WatchOptionsWithBufferEncoding | "buffer",
listener: WatchListener<Buffer>,
): FSWatcher;
/**
* Watch for changes on `filename`, where `filename` is either a file or a directory, returning an `FSWatcher`.
* @param filename A path to a file or directory. If a URL is provided, it must use the `file:` protocol.
* @param options Either the encoding for the filename provided to the listener, or an object optionally specifying encoding, persistent, and recursive options.
* If `encoding` is not supplied, the default of `'utf8'` is used.
* If `persistent` is not supplied, the default of `true` is used.
* If `recursive` is not supplied, the default of `false` is used.
*/
export function watch(
filename: PathLike,
options: WatchOptions | string,
listener?: WatchListener<string | Buffer>,
options: WatchOptions | BufferEncoding | "buffer" | null,
listener: WatchListener<string | Buffer>,
): FSWatcher;
/**
* Watch for changes on `filename`, where `filename` is either a file or a directory, returning an `FSWatcher`.
* @param filename A path to a file or directory. If a URL is provided, it must use the `file:` protocol.
*/
export function watch(filename: PathLike, listener?: WatchListener<string>): FSWatcher;
export function watch(filename: PathLike, listener: WatchListener<string>): FSWatcher;
/**
* Test whether or not the given path exists by checking with the file system.
* Then call the `callback` argument with either true or false:
Expand Down
45 changes: 19 additions & 26 deletions types/node/v22/fs/promises.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ declare module "fs/promises" {
StatsFs,
TimeLike,
WatchEventType,
WatchOptions,
WatchOptions as _WatchOptions,
WriteStream,
WriteVResult,
} from "node:fs";
Expand Down Expand Up @@ -1182,6 +1182,16 @@ declare module "fs/promises" {
* @return Fulfills with an {fs.Dir}.
*/
function opendir(path: PathLike, options?: OpenDirOptions): Promise<Dir>;
interface WatchOptions extends _WatchOptions {
maxQueue?: number | undefined;
overflow?: "ignore" | "throw" | undefined;
}
interface WatchOptionsWithBufferEncoding extends WatchOptions {
encoding: "buffer";
}
interface WatchOptionsWithStringEncoding extends WatchOptions {
encoding?: BufferEncoding | undefined;
}
/**
* Returns an async iterator that watches for changes on `filename`, where `filename`is either a file or a directory.
*
Expand Down Expand Up @@ -1214,33 +1224,16 @@ declare module "fs/promises" {
*/
function watch(
filename: PathLike,
options:
| (WatchOptions & {
encoding: "buffer";
})
| "buffer",
): AsyncIterable<FileChangeInfo<Buffer>>;
/**
* Watch for changes on `filename`, where `filename` is either a file or a directory, returning an `FSWatcher`.
* @param filename A path to a file or directory. If a URL is provided, it must use the `file:` protocol.
* @param options Either the encoding for the filename provided to the listener, or an object optionally specifying encoding, persistent, and recursive options.
* If `encoding` is not supplied, the default of `'utf8'` is used.
* If `persistent` is not supplied, the default of `true` is used.
* If `recursive` is not supplied, the default of `false` is used.
*/
function watch(filename: PathLike, options?: WatchOptions | BufferEncoding): AsyncIterable<FileChangeInfo<string>>;
/**
* Watch for changes on `filename`, where `filename` is either a file or a directory, returning an `FSWatcher`.
* @param filename A path to a file or directory. If a URL is provided, it must use the `file:` protocol.
* @param options Either the encoding for the filename provided to the listener, or an object optionally specifying encoding, persistent, and recursive options.
* If `encoding` is not supplied, the default of `'utf8'` is used.
* If `persistent` is not supplied, the default of `true` is used.
* If `recursive` is not supplied, the default of `false` is used.
*/
options?: WatchOptionsWithStringEncoding | BufferEncoding,
): NodeJS.AsyncIterator<FileChangeInfo<string>>;
function watch(
filename: PathLike,
options: WatchOptionsWithBufferEncoding | "buffer",
): NodeJS.AsyncIterator<FileChangeInfo<Buffer>>;
function watch(
filename: PathLike,
options: WatchOptions | string,
): AsyncIterable<FileChangeInfo<string>> | AsyncIterable<FileChangeInfo<Buffer>>;
options: WatchOptions | BufferEncoding | "buffer",
): NodeJS.AsyncIterator<FileChangeInfo<string | Buffer>>;
/**
* Asynchronously copies the entire directory structure from `src` to `dest`,
* including subdirectories and files.
Expand Down
2 changes: 1 addition & 1 deletion types/node/v22/http.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2028,7 +2028,7 @@ declare module "http" {
*/
const maxHeaderSize: number;
/**
* A browser-compatible implementation of [WebSocket](https://nodejs.org/docs/latest/api/http.html#websocket).
* A browser-compatible implementation of `WebSocket`.
* @since v22.5.0
*/
const WebSocket: import("undici-types").WebSocket;
Expand Down
Loading