From 12ca0ba61b85288a31c8e1993cb2dba0ba52bf29 Mon Sep 17 00:00:00 2001 From: Sathya Gunasekaran Date: Tue, 14 Feb 2023 23:07:16 +0000 Subject: [PATCH] [hir] Simplify HookKind --- compiler/forget/src/Inference/InferReferenceEffects.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;