@tmlmobilidade/utils
Version:
This package provides a collection of common utility functions used across projects within the organization.
13 lines (12 loc) • 454 B
TypeScript
interface GenerateRandomStringOptions {
length?: number;
type?: 'alphanumeric' | 'numeric';
}
/**
* Creates a random string of a given length and type.
* @param length - The length of the string to generate.
* @param type - The type of characters to include in the string.
* @returns A random string of the specified length.
*/
export declare function generateRandomString({ length, type }?: GenerateRandomStringOptions): string;
export {};