- useModel<M, T, K, G, S>(props, name, options?): ModelRef<T[K], M, G, S>
Type Parameters
- M extends PropertyKey
- T extends Record<string, any>
- K extends string | number | symbol
- G = T[K]
- S = T[K]
Parameters
- props: T
- name: K
Optional
options: DefineModelOptions<T[K], G, S>