Mika Scraper / TempMailResponse
Interface: TempMailResponse<T>
Defined in: src/temp-mail/tempmail.ts:24
The TempMailResponse interface represents the structure of the response returned by the TempMail API for both endpoints.
Type Parameters
T
T โ The type of the data contained in the result property.
Properties
success
success:
boolean
Indicates whether the API request was successful. A value of true signifies a successful operation, while false indicates a failure.
Defined in: src/temp-mail/tempmail.ts:25
code
code:
number
A numeric code representing the status of the API response. Typically, these codes correspond to standard HTTP status codes or custom error codes defined by the API.
Defined in: src/temp-mail/tempmail.ts:26
result
result:
T
Contains the response data from the API. The type of this property is determined by the type parameter T, allowing for flexibility based on the context in which the interface is used.
Defined in: src/temp-mail/tempmail.ts:27