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.
17 lines • 1.07 kB
TypeScript
type num = number;
type str = string;
/**
* This is a TypeScript function that generates a random string of symbols with a specified length and
* custom symbols if provided.
* @param {num} [length=1] - The length parameter is a number that specifies the length of the
* generated symbol ID. By default, it is set to 1 if no value is provided.
* @param {str[] | undefined} CustomSymbols - CustomSymbols is an optional parameter that allows the
* user to provide their own array of symbols to be used in generating the random string. If this
* parameter is not provided, the function will use the default array of symbols defined in the code.
* @returns The function `GenerateSymbolIDsync` is returning a promise that resolves to a string
* (`Promise<str>`). The string is a randomly generated sequence of symbols of length `length`, using
* either the default symbol array or a custom symbol array if provided.
*/
export default function GenerateSymbolIDsync(length?: num, CustomSymbols?: str[]): str;
export {};
//# sourceMappingURL=SymbolFunction.d.ts.map