1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 | interface Inflection {
|
7 | indexOf<T, T2>(arr: T[], item: T2, from_index?: number, compare_func?: (arr_item: T, item: T2) => boolean): number;
|
8 | pluralize(str: string, plural?: string): string;
|
9 | singularize(str: string, singular?: string): string;
|
10 | inflect(str: string, count: number, singular?: string, plural?: string): string;
|
11 | camelize(str: string, low_first_letter?: boolean): string;
|
12 | underscore(str: string, all_upper_case?: boolean): string;
|
13 | humanize(str: string, low_first_letter?: boolean): string;
|
14 | capitalize(str: string): string;
|
15 | dasherize(str: string): string;
|
16 | titleize(str: string): string;
|
17 | demodulize(str: string): string;
|
18 | tableize(str: string): string;
|
19 | classify(str: string): string;
|
20 | foreign_key(str: string, drop_id_ubar?: boolean): string;
|
21 | ordinalize(str: string): string;
|
22 | transform(str: string, arr: string[]): string;
|
23 | version: string;
|
24 | }
|
25 |
|
26 | declare var inflection: Inflection;
|
27 | export = inflection;
|
28 | export as namespace inflection;
|
29 |
|
\ | No newline at end of file |