Skip to Content
Mika Scraper 1.1.1 is released ๐ŸŽ‰
๐Ÿ• MIKA INTERFACEInterface: TempMailCreateResult

Mika Scraper v1.1.2


Mika Scraper / TempMailCreateResult

Interface: TempMailCreateResult

Defined in: src/temp-mail/tempmail.ts:15

The TempMailCreateResult interface describes the structure of the response returned by the create() method of the TempMail API.

Properties

status

status: "error" | "success"

Defined in: src/temp-mail/tempmail.ts:16

Indicates the outcome of the create() operation. Possible values are:

  • "success": The request was processed successfully.
  • "error": An error occurred during the request.

data

data: TempMailCreateData

Defined in: src/temp-mail/tempmail.ts:17

Contains the result data from the create() operation when the status is "success". If the status is "error", this property may be undefined or contain an error description.

Example

import { createTempMail } from 'mika-scraper'; const result: TempMailCreateResult = createTempMail(); if (result.status === "success") { console.log("Email created:", result.data); } else { console.error("Failed to create email."); }

Diagram: Mika Scraper

Last updated on