outers
Version:
outers - a all in one package for your day to day use
17 lines (16 loc) • 1.02 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 GenerateSymbolID(length?: num, CustomSymbols?: str[]): str;
export {};