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