@moddable/typings 8.2.0 → 8.2.1

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.
Files changed (2) hide show
  1. package/mcpack.d.ts +41 -10
  2. package/package.json +1 -1
package/mcpack.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2020-2025 Moddable Tech, Inc
2
+ * Copyright (c) 2020-2026 Moddable Tech, Inc
3
3
  *
4
4
  * This file is part of the Moddable SDK Tools.
5
5
  *
@@ -18,6 +18,16 @@
18
18
  *
19
19
  */
20
20
 
21
+ /// <reference path="./web/fetch.d.ts" />
22
+ /// <reference path="./web/headers.d.ts" />
23
+ /// <reference path="./web/structuredClone.d.ts" />
24
+ /// <reference path="./web/url.d.ts" />
25
+ /// <reference path="./web/worker.d.ts" />
26
+ /// <reference path="./web/websocket.d.ts" />
27
+ /// <reference path="./web/webstorage.d.ts" />
28
+ /// <reference path="./text/decoder.d.ts" />
29
+ /// <reference path="./text/encoder.d.ts" />
30
+
21
31
  import type Timer from "timer";
22
32
 
23
33
  interface Console {
@@ -32,14 +42,35 @@ declare global {
32
42
  const setImmediate: (handler: Function) => Timer;
33
43
  const setInterval: (handler: Function, timeout?: number) => Timer;
34
44
  const setTimeout: (handler: Function, timeout?: number) => Timer;
45
+
46
+ const localStorage: import("webstorage").default;
47
+
48
+ const WebSocket: typeof import("web/websocket").default;
49
+ type WebSocket = import("web/websocket").default;
50
+
51
+ const Headers: typeof import("headers").default;
52
+ type Headers = import("headers").default;
53
+
54
+ const fetch: typeof import("fetch").fetch;
55
+
56
+ const structuredClone: typeof import("structuredClone").default;
57
+
58
+ const TextDecoder: typeof import("text/decoder").default;
59
+ type TextDecoder = import("text/decoder").default;
60
+
61
+ const TextEncoder: typeof import("text/encoder").default;
62
+ type TextEncoder = import("text/encoder").default;
63
+
64
+ const URL: typeof import("url").URL;
65
+ type URL = import("url").URL;
66
+
67
+ const URLSearchParams: typeof import("url").URLSearchParams;
68
+ type URLSearchParams = import("url").URLSearchParams;
69
+
70
+ const Worker: typeof import("worker").default;
71
+ type Worker = import("worker").default;
72
+
73
+ const SharedWorker: typeof import("worker").SharedWorker;
74
+ type SharedWorker = import("worker").SharedWorker;
35
75
  }
36
76
 
37
- // import fetch from "fetch";
38
- // import Headers from "headers";
39
- // import structuredClone from "structuredClone";
40
- // import TextDecoder from "text/decoder";
41
- // import TextEncoder from "text/encoder";
42
- // import URL from "url";
43
- // import { URLSearchParams } from "url";
44
- // import Worker from "worker";
45
- // import { SharedWorker } from "worker";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moddable/typings",
3
- "version": "8.2.0",
3
+ "version": "8.2.1",
4
4
  "main": "",
5
5
  "types": [
6
6
  "xs.d.ts",