aboutsummaryrefslogtreecommitdiff
path: root/src/modules/string
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/string')
-rw-r--r--src/modules/string/index.ts16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/modules/string/index.ts b/src/modules/string/index.ts
index 8f62788a..6240184c 100644
--- a/src/modules/string/index.ts
+++ b/src/modules/string/index.ts
@@ -4,9 +4,13 @@ import type { LiteralUnion } from '../../utils/types';
export type Casing = 'upper' | 'lower' | 'mixed';
-const UPPER_CHARS: readonly string[] = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'.split('');
-const LOWER_CHARS: readonly string[] = 'abcdefghijklmnopqrstuvwxyz'.split('');
-const DIGIT_CHARS: readonly string[] = '0123456789'.split('');
+const UPPER_CHARS: ReadonlyArray<string> = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'.split(
+ ''
+);
+const LOWER_CHARS: ReadonlyArray<string> = 'abcdefghijklmnopqrstuvwxyz'.split(
+ ''
+);
+const DIGIT_CHARS: ReadonlyArray<string> = '0123456789'.split('');
export type LowerAlphaChar =
| 'a'
@@ -200,7 +204,7 @@ export class StringModule {
*
* @default []
*/
- exclude?: readonly LiteralUnion<AlphaChar>[] | string;
+ exclude?: ReadonlyArray<LiteralUnion<AlphaChar>> | string;
} = {}
): string {
if (typeof options === 'number') {
@@ -290,7 +294,7 @@ export class StringModule {
*
* @default []
*/
- exclude?: readonly LiteralUnion<AlphaNumericChar>[] | string;
+ exclude?: ReadonlyArray<LiteralUnion<AlphaNumericChar>> | string;
} = {}
): string {
if (typeof options === 'number') {
@@ -567,7 +571,7 @@ export class StringModule {
*
* @default []
*/
- exclude?: readonly LiteralUnion<NumericChar>[] | string;
+ exclude?: ReadonlyArray<LiteralUnion<NumericChar>> | string;
} = {}
): string {
if (typeof options === 'number') {