vue-lynx / useModel

Function: useModel()

function useModel<M, T, K, G, S>(
   props, 
   name, 
options?): ModelRef<T[K], M, G, S>

Type Parameters

Type ParameterDefault type
M extends PropertyKey-
T extends Record<string, any>-
K extends string | number | symbol-
GT[K]
ST[K]

Parameters

ParameterType
propsT
nameK
options?DefineModelOptions<T[K], G, S>

Returns

ModelRef<T[K], M, G, S>

Defined in

node_modules/.pnpm/@vue+runtime-core@3.5.30/node_modules/@vue/runtime-core/dist/runtime-core.d.ts:1537