Skip to Content
Mika Scraper 1.1.1 is released ๐ŸŽ‰
๐Ÿฉ MIKA TYPE ALIASType Alias: poemTypes

Type Alias: poemTypes

poemTypes = readonly ["Haiku", "Sonnet", "Free Verse", "Blank Verse", "Limerick", "Romantic", "Proposal", "Love", "Lyric", "Acrostic", "Ballad", "Epic", "Elegy", "Ode", "Pantoum", "Narrative", "Cinquain", "Villanelle", "Sestina", "Couplet"]

Defined in: src/poem/poem-generator.ts:7

Overview

The poemTypes type alias represents an enumeration of all supported poetic structures and styles. It encompasses both classic and contemporary forms of poetry utilized worldwide.

Usage

Developers can use the poemTypes type alias to enforce strict types for variables and parameters that should correspond to the defined poetic styles. This enhances type safety within TypeScript applications that require categorization or recognition of different types of poems.

Example

function createPoem(type: poemTypes) { // Function implementation here } const myPoem: poemTypes = "Haiku"; // Valid usage createPoem(myPoem);

Supported Poetic Forms

  • Haiku
  • Sonnet
  • Free Verse
  • Blank Verse
  • Limerick
  • Romantic
  • Proposal
  • Love
  • Lyric
  • Acrostic
  • Ballad
  • Epic
  • Elegy
  • Ode
  • Pantoum
  • Narrative
  • Cinquain
  • Villanelle
  • Sestina
  • Couplet

This enumeration allows users to easily access and utilize recognized poetic forms in their applications without introducing ambiguity.

Last updated on