npm package diff
Package: react-compiler-runtime
Versions: 19.0.0-beta-55955c9-20241229 - 19.0.0-beta-e552027-20250112
File: package/dist/index.d.ts
Index: package/dist/index.d.ts
===================================================================
--- package/dist/index.d.ts
+++ package/dist/index.d.ts
@@ -1,19 +1,26 @@
-type MemoCache = Array<number | typeof $empty>;
-declare const $empty: unique symbol;
-export declare const c: any;
-declare enum GuardKind {
- PushGuardContext = 0,
- PopGuardContext = 1,
- PushExpectHook = 2,
- PopExpectHook = 3
+declare module 'react-compiler-runtime/index' {
+ type MemoCache = Array<number | typeof $empty>;
+ const $empty: unique symbol;
+ export const c: any;
+ enum GuardKind {
+ PushGuardContext = 0,
+ PopGuardContext = 1,
+ PushExpectHook = 2,
+ PopExpectHook = 3
+ }
+ export function $dispatcherGuard(kind: GuardKind): void;
+ export function $reset($: MemoCache): void;
+ export function $makeReadOnly(): void;
+ export const renderCounterRegistry: Map<string, Set<{
+ count: number;
+ }>>;
+ export function clearRenderCounterRegistry(): void;
+ export function useRenderCounter(name: string): void;
+ export function $structuralCheck(oldValue: any, newValue: any, variableName: string, fnName: string, kind: string, loc: string): void;
+ export {};
+
}
-export declare function $dispatcherGuard(kind: GuardKind): void;
-export declare function $reset($: MemoCache): void;
-export declare function $makeReadOnly(): void;
-export declare const renderCounterRegistry: Map<string, Set<{
- count: number;
-}>>;
-export declare function clearRenderCounterRegistry(): void;
-export declare function useRenderCounter(name: string): void;
-export declare function $structuralCheck(oldValue: any, newValue: any, variableName: string, fnName: string, kind: string, loc: string): void;
-export {};
+declare module 'react-compiler-runtime' {
+ import main = require('react-compiler-runtime/src/index');
+ export = main;
+}
\ No newline at end of file