Skip to content

ToNonFunctionForMaybeRefOrGetters

Category
Reactive

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

Usage

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