fix(types): improve TypeScript strictness compatibility and modernize test exports
This commit is contained in:
@@ -26,8 +26,8 @@ const getRandomInt = (min: number, max: number): number => {
|
||||
* ! - Special character
|
||||
* * - Any character (A, a, 0, or !)
|
||||
*/
|
||||
const customRandomatic = (pattern: string, length?: number, options?: any): string => {
|
||||
const charSets = {
|
||||
const customRandomatic = (pattern: string, length?: number, options?: unknown): string => {
|
||||
const charSets: Record<string, string> = {
|
||||
'A': 'ABCDEFGHIJKLMNOPQRSTUVWXYZ',
|
||||
'a': 'abcdefghijklmnopqrstuvwxyz',
|
||||
'0': '0123456789',
|
||||
|
||||
Reference in New Issue
Block a user