feat(derive): expose checked form resource constants

Have #[slhx::form] emit an associated FORM resource so checked form handlers can be called with TodoInput::FORM-style values instead of generated_resource.typed::<T>() noise.

req: form/001

req: form/004

req: form/006

req: codegen/004
This commit is contained in:
slhx agent
2026-05-26 00:03:47 +02:00
parent 1b255e593d
commit 0b6ad64d98
5 changed files with 38 additions and 13 deletions
+4
View File
@@ -423,6 +423,10 @@ struct CreateTodo {
fn create(_form: slhx::Form<CreateTodo>) -> impl slhx::IntoEffect {
slhx::event("created", "")
}
fn smoke() {
let _ = create(CreateTodo::FORM);
}
"#,
);