-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathdaciolo.d.ts
32 lines (31 loc) · 979 Bytes
/
daciolo.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
declare module 'daciolo-ipsum' {
export interface Options {
readonly paragraphs?: number;
readonly quotes_per_paragraphs?: number;
readonly wrap_with_paragraph_tags?: boolean;
}
/**
* Generates a random quote of out the best possibles, in the name of the Lord.
*
* @param options Configurations to generate this quote
* @returns The generated quote
* @example //Without any option
* generate_quote();
* @example //With paragraphs option
* generate_quote({
* paragraphs: 20
* });
* @example //With paragraphs and quotes per paragraphs option
* generate_quote({
* paragraphs: 20,
* quotes_per_paragraphs: 4
* });
* @example //With all option
* generate_quote({
* paragraphs: 20,
* quotes_per_paragraphs: 4,
* wrap_with_paragraph_tags: true
* });
*/
export default function generate_quote(options: Options): string;
}