@samitouri / QOS-React-2 / commits / 6d4b0c61b3

Export ValueKind and Effect

We need to be able to reference these to teach the compiler about custom hooks like Relay.

Joe Savona committed Mar 8, 2023 at 15:56 UTC 6d4b0c61b37cd562cf209a4d5c81446ee3939ada
2 files changed +2 -2
compiler/forget/src/__tests__/hir-test.ts
+1 -1
@@ -10,7 +10,7 @@
10 import { wasmFolder } from "@hpcc-js/wasm";
11 import path from "path";
12 import runReactForgetBabelPlugin from "../Babel/RunReactForgetBabelPlugin";
13 -import { Effect, ValueKind } from "../HIR";
13 +import { Effect, ValueKind } from "../index";
14 import { toggleLogging } from "../Utils/logger";
15 import generateTestsFromFixtures from "./test-utils/generateTestsFromFixtures";
16
compiler/forget/src/index.ts
+1 -1
@@ -11,7 +11,7 @@ export {
11 ErrorSeverity,
12 } from "./CompilerError";
13 export { compile, CompilerPipelineValue, run } from "./CompilerPipeline";
14 -export { printHIR } from "./HIR";
14 +export { Effect, printHIR, ValueKind } from "./HIR";
15 export { printReactiveFunction } from "./ReactiveScopes";
16
17 declare global {