refactor: remove explicit any across admin forms and catalog actions

- Type resolveAsChild generically over Base UI render-prop type
- Type catalog/rooms/catalog-items Prisma updates with Prisma.*UpdateInput
- Type EventForm/PollForm with explicit form-value interfaces
- Type EventPrizesManager/PollQuestionsManager with validator input types
- All typecheck, lint, and 312 tests pass
This commit is contained in:
openhands
2026-07-18 20:31:18 +02:00
parent 907a4399d0
commit 3eaffe658d
8 changed files with 61 additions and 23 deletions
+10 -3
View File
@@ -75,9 +75,16 @@ export function PollQuestionsManager({ pollId, questions }: Props) {
function handleSubmit(e: React.FormEvent) {
e.preventDefault();
if (editingId) {
run(() => updatePollQuestion({ id: editingId, ...form } as PollQuestionUpdateInput), {
successMessage: "Question updated!",
});
run(
() =>
updatePollQuestion({
id: editingId,
...form,
} as PollQuestionUpdateInput),
{
successMessage: "Question updated!",
},
);
} else {
run(() => addPollQuestion(form), {
successMessage: "Question added!",