@@ -58,7 +58,7 @@ export class Random {
58
58
number (
59
59
options ?: number | { min ?: number ; max ?: number ; precision ?: number }
60
60
) : number {
61
- console . log (
61
+ console . warn (
62
62
'Deprecation Warning: faker.random.number is now located in faker.datatype.number'
63
63
) ;
64
64
return this . faker . datatype . number ( options ) ;
@@ -86,7 +86,7 @@ export class Random {
86
86
float (
87
87
options ?: number | { min ?: number ; max ?: number ; precision ?: number }
88
88
) : number {
89
- console . log (
89
+ console . warn (
90
90
'Deprecation Warning: faker.random.float is now located in faker.datatype.float'
91
91
) ;
92
92
return this . faker . datatype . float ( options ) ;
@@ -186,7 +186,7 @@ export class Random {
186
186
* @see faker.datatype.uuid()
187
187
*/
188
188
uuid ( ) : string {
189
- console . log (
189
+ console . warn (
190
190
'Deprecation Warning: faker.random.uuid is now located in faker.datatype.uuid'
191
191
) ;
192
192
return this . faker . datatype . uuid ( ) ;
@@ -202,7 +202,7 @@ export class Random {
202
202
* @see faker.datatype.boolean()
203
203
*/
204
204
boolean ( ) : boolean {
205
- console . log (
205
+ console . warn (
206
206
'Deprecation Warning: faker.random.boolean is now located in faker.datatype.boolean'
207
207
) ;
208
208
return this . faker . datatype . boolean ( ) ;
@@ -291,7 +291,7 @@ export class Random {
291
291
* @deprecated
292
292
*/
293
293
image ( ) : string {
294
- console . log (
294
+ console . warn (
295
295
'Deprecation Warning: faker.random.image is now located in faker.image.image'
296
296
) ;
297
297
return this . faker . image . image ( ) ;
@@ -316,10 +316,11 @@ export class Random {
316
316
* @method faker.random.alpha
317
317
* @param options // defaults to { count: 1, upcase: false, bannedChars: [] }
318
318
*/
319
+ // TODO @Shinigami 92 2022-02-14: Tests covered `(count, options)`, but they were never typed like that
319
320
alpha (
320
321
options ?:
321
322
| number
322
- | { count : number ; upcase ?: boolean ; bannedChars ?: string [ ] }
323
+ | { count ? : number ; upcase ?: boolean ; bannedChars ?: string [ ] }
323
324
) : string {
324
325
if ( typeof options === 'undefined' ) {
325
326
options = {
@@ -455,7 +456,7 @@ export class Random {
455
456
* @deprecated
456
457
*/
457
458
hexaDecimal ( count ?: number ) : string {
458
- console . log (
459
+ console . warn (
459
460
'Deprecation Warning: faker.random.hexaDecimal is now located in faker.datatype.hexaDecimal'
460
461
) ;
461
462
return this . faker . datatype . hexaDecimal ( count ) ;
0 commit comments