Skip to Content
Mika Scraper 1.1.1 is released πŸŽ‰

SupportedSlugs

SupportedSlugs = "ai-art-generator" | "ai-fantasy-map-creator" | "ai-youtube-thumbnail-generator" | "ai-old-cartoon-characters-generator"

Defined in: src/aifreebox/aifreebox.ts:7

Type Alias: SupportedSlugs

The SupportedSlugs type alias defines a set of predefined string literals that represent the available generation models in the Mika Scraper. This type is useful for ensuring that only valid options are used when interacting with the scraper’s functionality.

Usage

When working with the Mika Scraper, you can use the SupportedSlugs type to specify which generation model you want to utilize in function calls or configuration settings. This enhances type safety and improves code clarity.

Example

import { SupportedSlugs } from 'mika-scraper'; const model: SupportedSlugs = "ai-art-generator"; // Valid usage // const invalidModel: SupportedSlugs = "ai-unknown-generator"; // TypeScript will throw an error

Predefined Values

The following string values are included in the SupportedSlugs type:

  • "ai-art-generator": Generates art based on input parameters.
  • "ai-fantasy-map-creator": Creates fantasy maps using AI techniques.
  • "ai-youtube-thumbnail-generator": Produces YouTube thumbnails tailored to content.
  • "ai-old-cartoon-characters-generator": Generates characters styled as old cartoons.

Diagram: Mika Scraper

Last updated on