Skip to content

ToMaybeRefOrGetters

Category
Reactive

Mark the object's property type as MaybeRefOrGetters.

Usage

ts
import type { 
ToMaybeRefOrGetters
} from "@utype/vue";
type
Prop
= {
name
: string;
age
: number;
}; // Expect: { name: MaybeRefOrGetters<string>; age: MaybeRefOrGetters<number>; } type
MyProp
=
ToMaybeRefOrGetters
<
Prop
>;