@ms-cloudpack/common-types-browser 0.6.0 → 0.6.2
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/global.d.ts +11 -0
- package/package.json +3 -2
package/global.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { CloudpackGlobal, PageErrorsGlobal } from './index.js';
|
|
2
|
+
|
|
3
|
+
export {}; // Make this a module
|
|
4
|
+
|
|
5
|
+
declare global {
|
|
6
|
+
interface Window {
|
|
7
|
+
__cloudpack?: CloudpackGlobal;
|
|
8
|
+
/** Track uncaught errors (defined in `errorHandler.inline.ts` and read by the overlay) */
|
|
9
|
+
__pageErrors?: PageErrorsGlobal;
|
|
10
|
+
}
|
|
11
|
+
}
|
package/package.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ms-cloudpack/common-types-browser",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.2",
|
|
4
4
|
"description": "Types for Cloudpack browser globals.",
|
|
5
5
|
"license": "MIT",
|
|
6
|
+
"type": "module",
|
|
6
7
|
"types": "index.d.ts",
|
|
7
8
|
"exports": {
|
|
8
9
|
".": {
|
|
@@ -25,6 +26,6 @@
|
|
|
25
26
|
"@ms-cloudpack/scripts": "^0.0.1"
|
|
26
27
|
},
|
|
27
28
|
"files": [
|
|
28
|
-
"
|
|
29
|
+
"*.d.ts"
|
|
29
30
|
]
|
|
30
31
|
}
|