@samitouri / QOS-React-2 / commits / ddc135cf40

[be] Type CompilerPipeline as Generator

Sathya Gunasekaran committed Jan 13, 2023 at 16:26 UTC ddc135cf40b8e323f7b0bd03165127e958368b82
1 file changed +1 -1
compiler/forget/src/CompilerPipeline.ts
+1 -1
@@ -41,7 +41,7 @@ export type CompilerPipelineValue =
41
42 export function* run(
43 func: NodePath<t.FunctionDeclaration>
44 -): Iterator<CompilerPipelineValue, t.Function> {
44 +): Generator<CompilerPipelineValue, t.Function> {
45 const env = new Environment();
46
47 const lowering = lower(func, env).orElse((errors) => {