Skip to content

ToMaybeRefOrGettersForNonFunction

Category
Reactive

Mark the non-function property type of the object as MaybeRefOrGetters.

Usage

ts
import type { 
ToMaybeRefOrGettersForNonFunction
} from "@utype/vue";
type
Prop
= {
name
: string;
getName
: () => string;
}; // Expect: { name: MaybeRefOrGetters<string>; getName: () => string; } type
MyProp
=
ToMaybeRefOrGettersForNonFunction
<
Prop
>;