Files
joeac.net/website/src/scripts/contact/selectors.ts
T
2025-12-18 11:04:03 +00:00

28 lines
874 B
TypeScript

export type Selectors = {
contactForm: {
emailElem: () => HTMLInputElement;
errorElem: () => Element | null;
nameElem: () => HTMLInputElement;
messageElem: () => HTMLTextAreaElement;
self: () => HTMLFormElement | null;
submitButton: () => HTMLInputElement | null;
};
otpDialog: {
allOtpInputs: () => NodeListOf<HTMLInputElement>;
errorElem: () => Element | null;
firstOtpInput: () => HTMLInputElement | null;
otpForm: () => HTMLFormElement | null;
otpRecipient: () => Element | null;
otpValidUntil: () => Element | null;
resendButton: () => HTMLButtonElement | null;
self: () => HTMLDialogElement;
submitButton: () => HTMLInputElement | null;
};
successSection: {
email: () => Element | null;
message: () => Element | null;
name: () => Element | null;
self: () => Element | null;
};
};