@@ -65,6 +65,8 @@ export class SimpleFaker {
6565 *
6666 * faker.defaultRefDate() // 2020-01-01T00:00:01Z
6767 * faker.defaultRefDate() // 2020-01-01T00:00:02Z
68+ *
69+ * @since 8.0.0
6870 */
6971 setDefaultRefDate (
7072 dateOrSource : string | Date | number | ( ( ) => Date ) = ( ) => new Date ( )
@@ -95,6 +97,18 @@ export class SimpleFaker {
9597 * Specify this only if you want to use it to achieve a specific goal,
9698 * such as sharing the same random generator with other instances/tools.
9799 * Defaults to faker's Mersenne Twister based pseudo random number generator.
100+ *
101+ * @example
102+ * import { SimpleFaker } from '@faker-js/faker';
103+ * // const { SimpleFaker } = require('@faker-js/faker');
104+ *
105+ * // create a SimpleFaker without any locale data
106+ * const customSimpleFaker = new SimpleFaker();
107+ *
108+ * customSimpleFaker.helpers.arrayElement([red', 'green', 'blue']); // 'green'
109+ * customSimpleFaker.number.int(10); // 4
110+ *
111+ * @since 8.1.0
98112 */
99113 constructor (
100114 options : {
@@ -146,6 +160,8 @@ export class SimpleFaker {
146160 * // Random but reproducible tests:
147161 * // Simply log the seed, and if you need to reproduce it, insert the seed here
148162 * console.log('Running test with seed:', faker.seed());
163+ *
164+ * @since 6.0.0
149165 */
150166 seed ( seed ?: number ) : number ;
151167 /**
@@ -181,6 +197,8 @@ export class SimpleFaker {
181197 * // Random but reproducible tests:
182198 * // Simply log the seed, and if you need to reproduce it, insert the seed here
183199 * console.log('Running test with seed:', faker.seed());
200+ *
201+ * @since 6.0.0
184202 */
185203 seed ( seedArray : number [ ] ) : number [ ] ;
186204 /**
@@ -225,6 +243,8 @@ export class SimpleFaker {
225243 * // Random but reproducible tests:
226244 * // Simply log the seed, and if you need to reproduce it, insert the seed here
227245 * console.log('Running test with seed:', faker.seed());
246+ *
247+ * @since 6.0.0
228248 */
229249 seed ( seed ?: number | number [ ] ) : number | number [ ] ;
230250 seed (
0 commit comments