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

Mika Scraper v1.1.2


Type Alias: SupportedAspectRatios

SupportedAspectRatios = "1:1" | "2:3" | "9:16" | "16:9"

Overview

The SupportedAspectRatios type alias defines a union of string literals representing the predefined aspect ratios that are supported by the AI Freebox API.

Usage

Use this type alias when specifying aspect ratios in API requests to ensure that only valid aspect ratios are utilized.

Example

function setAspectRatio(ratio: SupportedAspectRatios) { // Implementation here } setAspectRatio("16:9"); // Valid setAspectRatio("4:3"); // Error: Argument of type '"4:3"' is not assignable to parameter of type 'SupportedAspectRatios'.

Location

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

Last updated on