refactor: use concrete type for mailpit helper

This commit is contained in:
ramvignesh-b
2026-04-18 18:52:03 +05:30
parent ad5bc57eee
commit e68dcb068b
+1 -1
View File
@@ -23,7 +23,7 @@ export const MailpitHelper = {
}); });
if (response.ok()) { if (response.ok()) {
const data = await response.json(); const data: { messages: MailpitMessage[] } = await response.json();
if (data.messages?.length > 0) { if (data.messages?.length > 0) {
const msgId = data.messages[0].ID; const msgId = data.messages[0].ID;
const detailRes = await requestContext.get( const detailRes = await requestContext.get(