0.2.0-alpha.4 • Published 6 years ago

@manta-style/plugin-mock-iterate v0.2.0-alpha.4

Weekly downloads
-
License
MIT
Repository
github
Last release
6 years ago

@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.