|
1 | 1 | import { FakerError } from '../../errors/faker-error'; |
2 | 2 | import { ModuleBase } from '../../internal/module-base'; |
3 | | -import type { LengthStrategy, NumberRange } from '../../utils/types'; |
| 3 | +import type { LengthStrategyType, NumberRange } from '../../utils/types'; |
4 | 4 | import { filterWordListByLength } from './filter-word-list-by-length'; |
5 | 5 |
|
6 | 6 | /** |
@@ -37,7 +37,7 @@ export class WordModule extends ModuleBase { |
37 | 37 | * |
38 | 38 | * @default 'fail' |
39 | 39 | */ |
40 | | - strategy?: LengthStrategy; |
| 40 | + strategy?: LengthStrategyType; |
41 | 41 | } = {} |
42 | 42 | ): string { |
43 | 43 | if (typeof options === 'number') { |
@@ -82,7 +82,7 @@ export class WordModule extends ModuleBase { |
82 | 82 | * |
83 | 83 | * @default 'fail' |
84 | 84 | */ |
85 | | - strategy?: LengthStrategy; |
| 85 | + strategy?: LengthStrategyType; |
86 | 86 | } = {} |
87 | 87 | ): string { |
88 | 88 | if (typeof options === 'number') { |
@@ -127,7 +127,7 @@ export class WordModule extends ModuleBase { |
127 | 127 | * |
128 | 128 | * @default 'fail' |
129 | 129 | */ |
130 | | - strategy?: LengthStrategy; |
| 130 | + strategy?: LengthStrategyType; |
131 | 131 | } = {} |
132 | 132 | ): string { |
133 | 133 | if (typeof options === 'number') { |
@@ -172,7 +172,7 @@ export class WordModule extends ModuleBase { |
172 | 172 | * |
173 | 173 | * @default 'fail' |
174 | 174 | */ |
175 | | - strategy?: LengthStrategy; |
| 175 | + strategy?: LengthStrategyType; |
176 | 176 | } = {} |
177 | 177 | ): string { |
178 | 178 | if (typeof options === 'number') { |
@@ -217,7 +217,7 @@ export class WordModule extends ModuleBase { |
217 | 217 | * |
218 | 218 | * @default 'fail' |
219 | 219 | */ |
220 | | - strategy?: LengthStrategy; |
| 220 | + strategy?: LengthStrategyType; |
221 | 221 | } = {} |
222 | 222 | ): string { |
223 | 223 | if (typeof options === 'number') { |
@@ -262,7 +262,7 @@ export class WordModule extends ModuleBase { |
262 | 262 | * |
263 | 263 | * @default 'fail' |
264 | 264 | */ |
265 | | - strategy?: LengthStrategy; |
| 265 | + strategy?: LengthStrategyType; |
266 | 266 | } = {} |
267 | 267 | ): string { |
268 | 268 | if (typeof options === 'number') { |
@@ -307,7 +307,7 @@ export class WordModule extends ModuleBase { |
307 | 307 | * |
308 | 308 | * @default 'fail' |
309 | 309 | */ |
310 | | - strategy?: LengthStrategy; |
| 310 | + strategy?: LengthStrategyType; |
311 | 311 | } = {} |
312 | 312 | ): string { |
313 | 313 | if (typeof options === 'number') { |
@@ -350,7 +350,7 @@ export class WordModule extends ModuleBase { |
350 | 350 | * |
351 | 351 | * @default 'fail' |
352 | 352 | */ |
353 | | - strategy?: LengthStrategy; |
| 353 | + strategy?: LengthStrategyType; |
354 | 354 | } = {} |
355 | 355 | ): string { |
356 | 356 | const wordMethods = this.faker.helpers.shuffle([ |
|
0 commit comments