Clean up typing

This commit is contained in:
thepaperpilot 2022-04-23 14:19:39 -05:00
parent f76d5deb6e
commit d988b37e8d

View file

@ -169,7 +169,7 @@ export function computeComponent(
watchEffect(() => {
comp.value = coerceComponent(unwrapRef(component), defaultWrapper);
});
return comp as ShallowRef<Component | JSXFunction | "">;
return comp as ShallowRef<Component | "">;
}
export function computeOptionalComponent(
component: Ref<ProcessedComputable<CoercableComponent | undefined> | undefined>,