@gjsify/dom-events 0.62.0 → 0.63.0
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.
- package/lib/types/index.d.ts +12 -3
- package/package.json +4 -4
package/lib/types/index.d.ts
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
import { DOMException } from '@gjsify/dom-exception';
|
|
2
2
|
export { DOMException };
|
|
3
|
+
interface AbortSignalLike {
|
|
4
|
+
addEventListener(type: 'abort', listener: () => void, options?: {
|
|
5
|
+
once?: boolean;
|
|
6
|
+
}): void;
|
|
7
|
+
}
|
|
8
|
+
interface MessagePortLike {
|
|
9
|
+
postMessage(message: unknown): void;
|
|
10
|
+
close(): void;
|
|
11
|
+
}
|
|
3
12
|
type EventListenerOrEventListenerObject = EventListener | EventListenerObject;
|
|
4
13
|
interface EventListener {
|
|
5
14
|
(evt: Event): void;
|
|
@@ -10,7 +19,7 @@ interface EventListenerObject {
|
|
|
10
19
|
interface AddEventListenerOptions extends EventListenerOptions {
|
|
11
20
|
once?: boolean;
|
|
12
21
|
passive?: boolean;
|
|
13
|
-
signal?:
|
|
22
|
+
signal?: AbortSignalLike;
|
|
14
23
|
}
|
|
15
24
|
interface EventListenerOptions {
|
|
16
25
|
capture?: boolean;
|
|
@@ -91,14 +100,14 @@ interface MessageEventInit<T = any> extends EventInit {
|
|
|
91
100
|
origin?: string;
|
|
92
101
|
lastEventId?: string;
|
|
93
102
|
source?: EventTarget | null;
|
|
94
|
-
ports?:
|
|
103
|
+
ports?: MessagePortLike[];
|
|
95
104
|
}
|
|
96
105
|
export declare class MessageEvent<T = any> extends Event {
|
|
97
106
|
readonly data: T;
|
|
98
107
|
readonly origin: string;
|
|
99
108
|
readonly lastEventId: string;
|
|
100
109
|
readonly source: EventTarget | null;
|
|
101
|
-
readonly ports: readonly
|
|
110
|
+
readonly ports: readonly MessagePortLike[];
|
|
102
111
|
constructor(type: string, eventInitDict?: MessageEventInit<T>);
|
|
103
112
|
get [Symbol.toStringTag](): string;
|
|
104
113
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gjsify/dom-events",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.63.0",
|
|
4
4
|
"description": "Web events module for Gjs",
|
|
5
5
|
"module": "lib/esm/index.js",
|
|
6
6
|
"types": "lib/types/index.d.ts",
|
|
@@ -57,11 +57,11 @@
|
|
|
57
57
|
"event"
|
|
58
58
|
],
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@gjsify/dom-exception": "^0.
|
|
60
|
+
"@gjsify/dom-exception": "^0.63.0"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
|
-
"@gjsify/cli": "^0.
|
|
64
|
-
"@gjsify/unit": "^0.
|
|
63
|
+
"@gjsify/cli": "^0.63.0",
|
|
64
|
+
"@gjsify/unit": "^0.63.0",
|
|
65
65
|
"@types/node": "^25.9.2",
|
|
66
66
|
"typescript": "^6.0.3"
|
|
67
67
|
},
|