fiction-word
Version:
A random word generator.
25 lines (24 loc) • 1.13 kB
TypeScript
/**
* @description Generates a word with a given length or a normally distributed number.
* @param length - The given length of the word.
* @returns The generated word.
*/
export declare const word: (length?: number) => string;
/**
* @description Generates a sentence with a given length or a normally distributed number.
* @param length - The given length of the sentence.
* @returns The generated sentence.
*/
export declare const sentence: (options?: number | import("./lorem-ipsum").IpsumOptions | undefined) => string;
/**
* @description Generates a paragraph with a given length or a normally distributed number.
* @param length - The given length of the paragraph.
* @returns The generated paragraph.
*/
export declare const paragraph: (options?: number | import("./lorem-ipsum").IpsumOptions | undefined) => string;
declare const _default: {
word: (length?: number | undefined) => string;
sentence: (options?: number | import("./lorem-ipsum").IpsumOptions | undefined) => string;
paragraph: (options?: number | import("./lorem-ipsum").IpsumOptions | undefined) => string;
};
export default _default;