From 9bce51f651aad297ef9eb6df832bfdaf1de05d84 Mon Sep 17 00:00:00 2001
From: WXL <wl_5969728@163.com>
Date: 星期三, 22 四月 2026 14:27:54 +0800
Subject: [PATCH] 青岛推送
---
node_modules/@types/node/fs.d.ts | 28 +++++-----------------------
1 files changed, 5 insertions(+), 23 deletions(-)
diff --git a/node_modules/@types/node/fs.d.ts b/node_modules/@types/node/fs.d.ts
index 6eb6984..b74033c 100644
--- a/node_modules/@types/node/fs.d.ts
+++ b/node_modules/@types/node/fs.d.ts
@@ -1,23 +1,3 @@
-/**
- * The `node:fs` module enables interacting with the file system in a
- * way modeled on standard POSIX functions.
- *
- * To use the promise-based APIs:
- *
- * ```js
- * import * as fs from 'node:fs/promises';
- * ```
- *
- * To use the callback and sync APIs:
- *
- * ```js
- * import * as fs from 'node:fs';
- * ```
- *
- * All file system operations have synchronous, callback, and promise-based
- * forms, and are accessible using both CommonJS syntax and ES6 Modules (ESM).
- * @see [source](https://github.com/nodejs/node/blob/v25.x/lib/fs.js)
- */
declare module "node:fs" {
import { NonSharedBuffer } from "node:buffer";
import { Abortable, EventEmitter, InternalEventEmitter } from "node:events";
@@ -2152,7 +2132,7 @@
* @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
*/
function mkdtempSync(prefix: string, options?: EncodingOption): string | NonSharedBuffer;
- interface DisposableTempDir extends AsyncDisposable {
+ interface DisposableTempDir extends Disposable {
/**
* The path of the created directory.
*/
@@ -2160,11 +2140,11 @@
/**
* A function which removes the created directory.
*/
- remove(): Promise<void>;
+ remove(): void;
/**
* The same as `remove`.
*/
- [Symbol.asyncDispose](): Promise<void>;
+ [Symbol.dispose](): void;
}
/**
* Returns a disposable object whose `path` property holds the created directory
@@ -3553,10 +3533,12 @@
*/
function unwatchFile(filename: PathLike, listener?: StatsListener): void;
function unwatchFile(filename: PathLike, listener?: BigIntStatsListener): void;
+ type WatchIgnorePredicate = string | RegExp | ((filename: string) => boolean);
interface WatchOptions extends Abortable {
encoding?: BufferEncoding | "buffer" | undefined;
persistent?: boolean | undefined;
recursive?: boolean | undefined;
+ ignore?: WatchIgnorePredicate | readonly WatchIgnorePredicate[] | undefined;
}
interface WatchOptionsWithBufferEncoding extends WatchOptions {
encoding: "buffer";
--
Gitblit v1.9.3