-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
47 lines (43 loc) · 1.11 KB
/
index.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// Type definitions for lingojs
// Project: https://github.com/LarvenLLC/lingojs
interface Lingo {
version: string;
add(inputString: string): Lingo;
value(): string;
convert(from?: string, to?: string): string;
format(format?: string): string;
sentence(): string;
pascal(): string;
snake(): string;
kebab(): string;
slug(): string;
camel(): string;
title(): string;
name(format?: string): string;
reverse(): string;
reverseWords(): string;
characters(): string;
words(): string;
count(): number;
countWords(): number;
chunk(length?: number, separator?: string): string;
wrap(wrapper?: string): string;
quote(): string;
singleQuote(): string;
doubleQuote(): string;
initials(separator?: string): string;
first(index?: number): string;
last(index?: number): string;
ellipsis(index?: number): string;
truncate(index?: number): string;
decapitalize(): string;
capitalize(): string;
lowerCase(): string;
upperCase(): string;
set(): string;
}
declare function lingo(value?: any): Lingo;
/**
* Usage: <code>import lingo from 'lingojs'</code>
*/
export default lingo;