© 2026 Hedgehog Software, LLC
export type Account = InferSelectModel<typeof TAccounts> & { createdAt: Date }; export type NewAccount = Omit<Account, 'id' | 'createdAt'>
NewAccount
const form = ref<NewAccount>();
<input v-model="form?.name" type="text" placeholder="Enter account name" />
[plugin:vite:vue] Transform failed with 1 error: <project>/components/Form/NewAccount.vue:38:67: ERROR: Invalid assignment target 36 | return (_openBlock(), _createElementBlock("div", _hoisted_1, [ 37 | _withDirectives(_createElementVNode("input", { 38 | "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (($setup.form?.name) = $event)), |
reactive
type Test = { name: string; age: number; }; const form = ref<Test>();