@globalart/text-utils
Version:
A collection of modules, helpers and utils for working with text.
8 lines (7 loc) • 375 B
TypeScript
/**
* Generates a random word of the specified length using the provided characters.
* @param length - The length of the word to generate.
* @param chars - The characters to use for generating the word. Defaults to lowercase English letters.
* @returns A randomly generated word.
*/
export declare const generateRandomString: (length: number, chars?: string) => string;