Skip to content

Commit db5d983

Browse files
chore(Random): import char types from StringModule
1 parent ed51483 commit db5d983

File tree

1 file changed

+6
-73
lines changed

1 file changed

+6
-73
lines changed

src/modules/random/index.ts

Lines changed: 6 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -1,79 +1,12 @@
11
import type { Faker } from '../..';
22
import { deprecated } from '../../internal/deprecated';
33
import type { LiteralUnion } from '../../utils/types';
4-
5-
export type Casing = 'upper' | 'lower' | 'mixed';
6-
7-
export type LowerAlphaChar =
8-
| 'a'
9-
| 'b'
10-
| 'c'
11-
| 'd'
12-
| 'e'
13-
| 'f'
14-
| 'g'
15-
| 'h'
16-
| 'i'
17-
| 'j'
18-
| 'k'
19-
| 'l'
20-
| 'm'
21-
| 'n'
22-
| 'o'
23-
| 'p'
24-
| 'q'
25-
| 'r'
26-
| 's'
27-
| 't'
28-
| 'u'
29-
| 'v'
30-
| 'w'
31-
| 'x'
32-
| 'y'
33-
| 'z';
34-
35-
export type UpperAlphaChar =
36-
| 'A'
37-
| 'B'
38-
| 'C'
39-
| 'D'
40-
| 'E'
41-
| 'F'
42-
| 'G'
43-
| 'H'
44-
| 'I'
45-
| 'J'
46-
| 'K'
47-
| 'L'
48-
| 'M'
49-
| 'N'
50-
| 'O'
51-
| 'P'
52-
| 'Q'
53-
| 'R'
54-
| 'S'
55-
| 'T'
56-
| 'U'
57-
| 'V'
58-
| 'W'
59-
| 'X'
60-
| 'Y'
61-
| 'Z';
62-
63-
export type NumericChar =
64-
| '0'
65-
| '1'
66-
| '2'
67-
| '3'
68-
| '4'
69-
| '5'
70-
| '6'
71-
| '7'
72-
| '8'
73-
| '9';
74-
75-
export type AlphaChar = LowerAlphaChar | UpperAlphaChar;
76-
export type AlphaNumericChar = AlphaChar | NumericChar;
4+
import type {
5+
AlphaChar,
6+
AlphaNumericChar,
7+
Casing,
8+
NumericChar,
9+
} from '../string';
7710

7811
/**
7912
* Generates random values of different kinds.

0 commit comments

Comments
 (0)