uniquegen
Version:
uniquegen is an package for Node.js projects, enabling the generation of random numbers and words. It offers flexibility and ease of use, making it a valuable tool for developers.
21 lines • 1.33 kB
TypeScript
type num = number;
type str = string;
type bool = boolean;
/**
* This TypeScript function generates a random mixed ID of a specified length, with the option to
* include custom characters and make the ID all capital letters.
* @param {num} [length=1] - The length parameter is a number that determines the length of the
* generated mixed ID.
* @param {bool} [isCAPITAL=false] - A boolean parameter that determines whether the generated mixed ID
* should be in all capital letters or not. If set to true, the function will return the generated ID
* in all capital letters. If set to false or not provided, the function will return the generated ID
* in lowercase letters.
* @param {str[]} [CustomMixeds] - CustomMixeds is an optional parameter that allows the user to
* provide their own array of characters to be used in generating the mixed ID. If this parameter is
* not provided, the function will use the default array of characters defined in the code.
* @returns a Promise that resolves to a string. The string is a randomly generated mixed ID of the
* specified length, with the option to include custom characters and to make the ID all uppercase.
*/
export default function GenerateMixedID(length?: num, isCAPITAL?: bool, CustomMixeds?: str[]): str;
export {};
//# sourceMappingURL=MixedFunction.d.ts.map