diff --git a/compiler/forget/src/Inference/InferReferenceEffects.ts b/compiler/forget/src/Inference/InferReferenceEffects.ts index 29c5a00099..f748f0c98e 100644 --- a/compiler/forget/src/Inference/InferReferenceEffects.ts +++ b/compiler/forget/src/Inference/InferReferenceEffects.ts @@ -837,8 +837,8 @@ const HOOKS: Map = new Map([ ], ]); -type HookKind = { kind: "State" } | { kind: "Ref" } | { kind: "Custom" }; -type Hook = HookKind & { effectKind: Effect; valueKind: ValueKind }; +type HookKind = "State" | "Ref" | "Custom"; +type Hook = { kind: HookKind; effectKind: Effect; valueKind: ValueKind }; export function parseHookCall(place: Place): Hook | null { const name = place.identifier.name;