1.13.2 • Published 6 months ago
@types/inflection v1.13.2
Installation
npm install --save @types/inflection
Summary
This package contains type definitions for inflection (https://github.com/dreamerslab/node.inflection).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/inflection.
index.d.ts
// Type definitions for inflection 1.13.0
// Project: https://github.com/dreamerslab/node.inflection
// Definitions by: Shogo Iwano <https://github.com/shiwano>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
interface Inflection {
indexOf<T, T2>(arr: T[], item: T2, from_index?: number, compare_func?: (arr_item: T, item: T2) => boolean): number;
pluralize(str: string, plural?: string): string;
singularize(str: string, singular?: string): string;
inflect(str: string, count: number, singular?: string, plural?: string): string;
camelize(str: string, low_first_letter?: boolean): string;
underscore(str: string, all_upper_case?: boolean): string;
humanize(str: string, low_first_letter?: boolean): string;
capitalize(str: string): string;
dasherize(str: string): string;
titleize(str: string): string;
demodulize(str: string): string;
tableize(str: string): string;
classify(str: string): string;
foreign_key(str: string, drop_id_ubar?: boolean): string;
ordinalize(str: string): string;
transform(str: string, arr: string[]): string;
version: string;
}
declare var inflection: Inflection;
export = inflection;
export as namespace inflection;
Additional Details
- Last updated: Mon, 13 Sep 2021 16:31:22 GMT
- Dependencies: none
- Global values:
inflection
Credits
These definitions were written by Shogo Iwano.
1.13.2
6 months ago
1.13.1
7 months ago
1.13.0
3 years ago
1.5.28
8 years ago
1.5.27
8 years ago
1.5.26-alpha
8 years ago
1.5.25-alpha
8 years ago
1.5.24-alpha
8 years ago
1.5.23-alpha
8 years ago
1.5.22-alpha
8 years ago
1.5.21-alpha
8 years ago
1.5.20-alpha
8 years ago
1.5.15-alpha
8 years ago
1.5.14-alpha
8 years ago