ST-DDT
ST-DDT
See here for our team decision: https://github.com/faker-js/faker/issues/1131#issuecomment-1205405540
> I want to import _Date because I want to use it in a delegate for configuring a test data builder: > > `date?: (date: _Date) => Date;` You should...
I like both the `FakerDate` and `DateModule` names. Any preference? But I'm unsure whether these names are really easier to use then `Faker['date']` and how often they will be used....
Note: The import will probably stop working in v6.2 because we intend to move the modules from `src/.ts` to `src/modules/.ts`
What is your expected behavior? - Getting a word with a different length - or always being forced to handle possibly undefined values - or throwing/catching an exception? EDIT: We...
What about shorter words e.g. length = 1?
**Team decision** - Throw an error by default, introduce options param that can be used to configure the errorHandling (e.g. return closest length). **Further discussions** - Introduce min and max...
Note since we need this in multiple modules this should be done in a new central method: `faker.helpers.stringArrayElement(elements, options)`
Note2 it should be applies/used for all of our word methods (those with a length parameters) in a single PR.
OK. ``strategy: 'fail' | 'return-any' = 'fail'`` Or `fail-if-unavailable`? Or `throw-if-unavailable`?