From 3bd962a6d7f61239c020e2dbbeb7341e5b842dd1 Mon Sep 17 00:00:00 2001
From: WXL <wl_5969728@163.com>
Date: 星期二, 21 四月 2026 11:46:41 +0800
Subject: [PATCH] 推送
---
node_modules/undici-types/websocket.d.ts | 18 +++++++++---------
1 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/node_modules/undici-types/websocket.d.ts b/node_modules/undici-types/websocket.d.ts
index a8477c1..6d81a25 100644
--- a/node_modules/undici-types/websocket.d.ts
+++ b/node_modules/undici-types/websocket.d.ts
@@ -1,8 +1,8 @@
/// <reference types="node" />
-import type { Blob } from 'buffer'
-import type { ReadableStream, WritableStream } from 'stream/web'
-import type { MessagePort } from 'worker_threads'
+import type { Blob } from 'node:buffer'
+import type { ReadableStream, WritableStream } from 'node:stream/web'
+import type { MessagePort } from 'node:worker_threads'
import {
EventInit,
EventListenerOptions,
@@ -96,16 +96,16 @@
data?: T
lastEventId?: string
origin?: string
- ports?: (typeof MessagePort)[]
- source?: typeof MessagePort | null
+ ports?: MessagePort[]
+ source?: MessagePort | null
}
interface MessageEvent<T = any> extends Event {
readonly data: T
readonly lastEventId: string
readonly origin: string
- readonly ports: ReadonlyArray<typeof MessagePort>
- readonly source: typeof MessagePort | null
+ readonly ports: readonly MessagePort[]
+ readonly source: MessagePort | null
initMessageEvent(
type: string,
bubbles?: boolean,
@@ -113,8 +113,8 @@
data?: any,
origin?: string,
lastEventId?: string,
- source?: typeof MessagePort | null,
- ports?: (typeof MessagePort)[]
+ source?: MessagePort | null,
+ ports?: MessagePort[]
): void;
}
--
Gitblit v1.9.3