\n\u003C/template>\n```\n\nError:\n```\nType '() => Promise\u003Cnumber>' is not assignable to type '((event: FormSubmitEvent\u003Cany>) => any) & ((() => void | Promise\u003Cvoid>) | ((event: FormSubmitEvent\u003Cany>) => void | Promise\u003Cvoid>))'.\n Type '() => Promise\u003Cnumber>' is not assignable to type '((event: FormSubmitEvent\u003Cany>) => any) & (() => void | Promise\u003Cvoid>)'.ts(2322)\nForm.vue.d.ts(59, 18): The expected type comes from property 'onSubmit' which is declared here on type '__VLS_NormalizeComponentEvent\u003CNonNullable\u003C{ onSubmit?: ((event: FormSubmitEvent\u003Cany>) => any) & ((() => void | Promise\u003Cvoid>) | ((event: FormSubmitEvent\u003Cany>) => void | Promise\u003C...>)); ... 11 more ...; class?: any; } & VNodeProps & AllowedComponentProps & ComponentCustomProps>, { ...; }, \"onSubmit\", \"submit\", \"submi...'\n---\n(property) onSubmit?: ((event: FormSubmitEvent\u003Cany>) => any) & ((() => void | Promise\u003Cvoid>) | ((event: FormSubmitEvent\u003Cany>) => void | Promise\u003Cvoid>))\n```\n\n### Description\n\n`\u003CUForm>`s `@submit` event handler type require that it does not return any value. This is needlessly constraining.\n\n### Additional context\n\nThis is not required by the implementation, but instead wholly caused by the types of `onSubmit` property:\nhttps://github.com/nuxt/ui/blob/901bf7cac3ea53264b27adf879ee4072fa9ac242/src/runtime/components/Form.vue#L53\n\nResult of the `onSubmit` prop is not used at all:\nhttps://github.com/nuxt/ui/blob/901bf7cac3ea53264b27adf879ee4072fa9ac242/src/runtime/components/Form.vue#L243\n\nReplacing the type of `onSubmit` with this should be enough:\n```typescript\nexport interface FormProps\u003CS extends FormSchema, T extends boolean = true> {\n // ...\n onSubmit?: (event: FormSubmitEvent\u003CFormData\u003CS, T>>) => unknown\n}\n```\nThis should still allow passing event handlers without arguments.\n\n### Logs\n\n```shell-script\n\n```",[3156,3159],{"name":3157,"color":3158},"bug","d73a4a",{"name":3160,"color":3161},"triage","ffffff",4873,"ui","`UForm` `onSubmit` type is needlessly constrained","2025-09-02T05:54:14Z","https://github.com/nuxt/ui/issues/4873",0.7286137,{"description":3169,"labels":3170,"number":3174,"owner":3146,"repository":3147,"state":3175,"title":3176,"updated_at":3177,"url":3178,"score":3179},"https://vueuse.org/core/useInfiniteScroll/",[3171],{"name":3172,"color":3173},"enhancement","1ad6ff",529,"closed","[Community] Infinite scroll on repositories list","2023-02-15T12:31:29Z","https://github.com/nuxt/nuxt.com/issues/529",0.62728965,{"description":3181,"labels":3182,"number":3174,"owner":3146,"repository":3186,"state":3175,"title":3187,"updated_at":3188,"url":3189,"score":3179},"Hello,\r\n\r\nWhen i want to use the MountSuspended helper, I've got this error.\r\n\u003Cimg width=\"829\" alt=\"image\" src=\"https://github.com/danielroe/nuxt-vitest/assets/14348168/18027eac-ccd4-4882-bdbb-6e0aac8b269c\">\r\n\r\nHere my test code and vitest config \r\n\u003Cimg width=\"1164\" alt=\"image\" src=\"https://github.com/danielroe/nuxt-vitest/assets/14348168/81855b82-2987-4f7f-a388-397780d04d57\">\r\n\r\nI don't know if i do something wrong or if it's an issue, so i need your help please !\r\n\r\nThanks a lot",[3183],{"name":3184,"color":3185},"vitest-environment","b60205","test-utils","Timeout on mountSuspended helper","2023-12-02T00:22:10Z","https://github.com/nuxt/test-utils/issues/529",{"description":3191,"labels":3192,"number":3199,"owner":3146,"repository":3163,"state":3175,"title":3200,"updated_at":3201,"url":3202,"score":3203},"### Description\n\nI have not been able to apply a custom brand color to a nuxt ui 3 site using the documentation.\n\nWhat am I doing wrong?\n\nhttps://codesandbox.io/p/devbox/focused-haze-63jcfx ",[3193,3196],{"name":3194,"color":3195},"question","d876e3",{"name":3197,"color":3198},"v3","49DCB8",3565,"Custom brand color","2025-03-14T13:18:33Z","https://github.com/nuxt/ui/issues/3565",0.6824369,{"description":3205,"labels":3206,"number":3209,"owner":3146,"repository":3147,"state":3175,"title":3210,"updated_at":3211,"url":3212,"score":3213},"https://content-v2.nuxtjs.org/guide/writing/mdc#props\n\n",[3207],{"name":3157,"color":3208},"ff281a",496,"[Milkdown] On serialize, component props should keep their current format `inline` or `yaml`","2023-06-06T12:14:53Z","https://github.com/nuxt/nuxt.com/issues/496",0.69575197,{"description":3215,"labels":3216,"number":3209,"owner":3146,"repository":3186,"state":3175,"title":3218,"updated_at":3219,"url":3220,"score":3213},"",[3217],{"name":3184,"color":3185},"documentation/examples","2023-12-02T22:52:29Z","https://github.com/nuxt/test-utils/issues/496",{"description":3222,"labels":3223,"number":3230,"owner":3146,"repository":3146,"state":3175,"title":3231,"updated_at":3232,"url":3233,"score":3234},"### Environment\r\n\r\nupgraded today\r\n\r\n### Reproduction\r\n\r\nHere all is ok with hook\r\n\r\n```\r\nimport { H3Event } from 'h3';\r\nimport { NitroApp } from 'nitropack';\r\nimport { useCompression } from 'h3-compression';\r\n\r\nimport { defineNitroPlugin } from 'nitropack/dist/runtime/plugin';\r\n\r\nexport default defineNitroPlugin((nitroApp: NitroApp) => {\r\n nitroApp.hooks.hook('render:response', async (response, { event }: { event: H3Event }) => {}\r\n}\r\n```\r\n\r\n\r\nAfter upgrade warnings `Argument of type '(event: H3Event) => void' is not assignable to parameter of type 'never'.`\r\n\r\n```\r\nimport { H3Event } from 'h3';\r\nimport { NitroApp } from 'nitropack';\r\n\r\nimport { defineNitroPlugin } from 'nitropack/dist/runtime/plugin';\r\n\r\nexport default defineNitroPlugin((nitroApp: NitroApp) => {\r\n nitroApp.hooks.hook('request', (event: H3Event) => {} \r\n}\r\n```\r\n\r\n\r\n### Describe the bug\r\n\r\nArgument of type '(event: H3Event) => Promise\u003Cvoid>' is not assignable to parameter of type 'never'\r\n\r\n### Additional context\r\n\r\n_No response_\r\n\r\n### Logs\r\n\r\n_No response_",[3224,3227],{"name":3225,"color":3226},"3.x","29bc7f",{"name":3228,"color":3229},"pending triage","E99695",23478,"Something is bad with plugin types ","2023-10-02T10:31:15Z","https://github.com/nuxt/nuxt/issues/23478",0.6996917,{"description":3236,"labels":3237,"number":3244,"owner":3146,"repository":3163,"state":3175,"title":3245,"updated_at":3246,"url":3247,"score":3248},"### For what version of Nuxt UI are you suggesting this?\n\nv3.0.0-alpha.x\n\n### Description\n\nChart is one of many things found when developing a statistics such as in dashboard admin. It would be good if nuxt ui have this component.\n\n### Additional context\n\n_No response_",[3238,3241,3243],{"name":3239,"color":3240},"duplicate","cfd3d7",{"name":3172,"color":3242},"a2eeef",{"name":3197,"color":3198},2673,"Chart component","2024-11-18T08:33:07Z","https://github.com/nuxt/ui/issues/2673",0.70813686,{"labels":3250,"number":3255,"owner":3146,"repository":3146,"state":3175,"title":3256,"updated_at":3257,"url":3258,"score":3259},[3251,3252],{"name":3228,"color":3229},{"name":3253,"color":3254},"2.x","d4c5f9",9853,"Incorrect return type for $fetch in TypeScript","2023-01-22T15:45:05Z","https://github.com/nuxt/nuxt/issues/9853",0.7209036,["Reactive",3261],{},["Set"],["ShallowReactive",3264],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fEEqRFvIwosg6YS6rz55GBH5z8WPqRWqJ7W85UCHbekk":-1},"/nuxt/ui/2877"]