@manta-style/plugin-mock-iterate

Manta Style Mock Plugin - Iterate

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
@manta-style/plugin-mock-iterate
41390.2.0-alpha.44 years ago4 years agoMinified + gzip package size for @manta-style/plugin-mock-iterate in KB

Readme

@manta-style/plugin-mock-iterate

Installation

$ yarn add @manta-style/plugin-mock-iterate

Usage

/**
 * 
 * @iterate 'Happy'
 * @iterate 'Birthday'
 * @iterate 'To'
 * @iterate 'You'
 * 
 */
  message: string;

  • Every call will generate the next message
  • First call will return 'Happy', then 'Birthday', then 'To', then 'Yout', then back to 'Happy' again.