[hir] Simplify HookKind
Sathya Gunasekaran committed
Feb 14, 2023 at 23:07 UTC
12ca0ba61b85288a31c8e1993cb2dba0ba52bf29
1 file changed
+2
-2
compiler/forget/src/Inference/InferReferenceEffects.ts
+2
-2
@@ -837,8 +837,8 @@ const HOOKS: Map<string, Hook> = new Map([
837
],
838
]);
839
840
-type HookKind = { kind: "State" } | { kind: "Ref" } | { kind: "Custom" };
841
-type Hook = HookKind & { effectKind: Effect; valueKind: ValueKind };
840
+type HookKind = "State" | "Ref" | "Custom";
841
+type Hook = { kind: HookKind; effectKind: Effect; valueKind: ValueKind };
842
843
export function parseHookCall(place: Place): Hook | null {
844
const name = place.identifier.name;