danibram / mocker-data-generator

A simplified way to generate masive mock data based on a schema, you can use the awesome fake/random data generators like (FakerJs, ChanceJs, CasualJs and RandExpJs)
https://danibram.github.io/mocker-data-generator/
MIT License
426 stars 45 forks source link

addGenerator run param should be optional #126

Closed emasjedi closed 1 year ago

emasjedi commented 1 year ago

Typescript yells at me for this syntax .addGenerator('faker', faker) because addGenerator expects 3 parameters. The run parameter should be marked optional

danibram commented 1 year ago

What a shame! Fixed in 3.0.2 version! Thanks for the time to write the issue and for using this lib! 🙇