-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathindex.d.ts
53 lines (46 loc) · 1.77 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
48
49
50
51
52
53
// typescript
/**
* Transforms the first character of each word to uppercase; other
* characters are unaffected.
* @param {string} str The string to be transformed.
* @return {string} Returns a transformed string.
* @see http://www.w3.org/wiki/CSS/Properties/text-transform
*/
export declare function capitalize(str: string): string;
/**
* Converts the passed string to a hashed string.
* @param {string} str The input string.
* @return {string} Returns hashed string.
*/
export declare function hash(str: string): string;
/**
* Converts the passed string into a string of capitalized words without
* separators (aka upper camel case).
* @param {string} str The input string.
* @return {string} A string transformed into a string of capitalized words
* without separators.
* @see https://en.wikipedia.org/wiki/PascalCase
*/
export declare function toPascalCase(str: string): string;
/**
* Converts the passed string into a string with the separator denoted by the
* next word capitalized (aka lower camel case).
* @param {string} str The input string.
* @return {string} A string transformed into a string with the separator
* denoted by the next word capitalized.
* @see https://en.wikipedia.org/wiki/Camel_case
*/
export declare function toCamelCase(str: string): string;
/**
* Converts the given string into a string with a single underscore as a separator.
* @param {string} str The input string.
* @return {string} A transformed string.
* @see https://en.wikipedia.org/wiki/Snake_case
*/
export declare function toSnakeCase(str: string): string;
/**
* Converts the given string into a string with a single dash as a separator.
* @param {string} str The input string.
* @return {string} A transformed string.
*/
export declare function toKebabCase(str: string): string;