Update to Profectus 0.7 #1

Merged
thepaperpilot merged 110 commits from feat/board-feature-rewrite into main 2024-12-31 13:27:34 +00:00
Showing only changes of commit 0a5f63ff04 - Show all commits

View file

@ -5,7 +5,7 @@ import { computed } from "vue";
export type MaybeGetter<T> = T | (() => T);
export function processGetter<T>(obj: T): T extends () => infer S ? ComputedRef<S> : T {
if (isFunction(obj)) {
if (isFunction(obj) && obj.length === 0) {
return computed(obj) as ReturnType<typeof processGetter<T>>;
}
return obj as ReturnType<typeof processGetter<T>>;