@tmlmobilidade/utils 20250725.246.45 → 20250725.248.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -8,5 +8,5 @@ interface GenerateRandomStringProps {
|
|
|
8
8
|
* @param type The type of characters to include in the string. Defaults to `alphanumeric`.
|
|
9
9
|
* @returns A random string of the specified length.
|
|
10
10
|
*/
|
|
11
|
-
export declare function generateRandomString({ length, type }
|
|
11
|
+
export declare function generateRandomString({ length, type }?: GenerateRandomStringProps): string;
|
|
12
12
|
export {};
|
|
@@ -6,7 +6,7 @@ import { generateRandomNumber } from './generate-random-number.js';
|
|
|
6
6
|
* @param type The type of characters to include in the string. Defaults to `alphanumeric`.
|
|
7
7
|
* @returns A random string of the specified length.
|
|
8
8
|
*/
|
|
9
|
-
export function generateRandomString({ length = 6, type = 'alphanumeric' }) {
|
|
9
|
+
export function generateRandomString({ length = 6, type = 'alphanumeric' } = {}) {
|
|
10
10
|
//
|
|
11
11
|
const numericSet = '0123456789';
|
|
12
12
|
const alphanumericSet = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789';
|
package/package.json
CHANGED