@ms-cloudpack/common-types-browser 0.6.4 → 0.6.5

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 CHANGED
@@ -7,5 +7,13 @@ declare global {
7
7
  __cloudpack?: CloudpackGlobal;
8
8
  /** Track uncaught errors (defined in `errorHandler.inline.ts` and read by the overlay) */
9
9
  __pageErrors?: PageErrorsGlobal;
10
+
11
+ /** React Refresh runtime (defined in `overlay/src/registerReactRefresh.ts`) */
12
+ $RefreshReg$?: (type: unknown, id: string) => void;
13
+ $RefreshSig$?: () => (type: unknown) => unknown;
14
+ $RefreshRuntime$?: {
15
+ performReactRefresh: () => unknown;
16
+ register: (type: unknown, id: string) => void;
17
+ };
10
18
  }
11
19
  }
package/index.d.ts CHANGED
@@ -42,6 +42,12 @@ export interface PageSessionContext {
42
42
  * @default 'always'
43
43
  */
44
44
  showOverlay: 'always' | 'errors-only' | 'never' | undefined;
45
+
46
+ /** Feature flags for browser runtime */
47
+ features: {
48
+ /** Whether to enable HMR */
49
+ hmr: boolean;
50
+ };
45
51
  }
46
52
 
47
53
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ms-cloudpack/common-types-browser",
3
- "version": "0.6.4",
3
+ "version": "0.6.5",
4
4
  "description": "Types for Cloudpack browser globals.",
5
5
  "license": "MIT",
6
6
  "type": "module",