@types/inflection
TypeScript icon, indicating that this package has built-in type declarations

1.13.2 • Public • Published

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

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: Tue, 07 Nov 2023 03:09:37 GMT
  • Dependencies: none

Credits

These definitions were written by Shogo Iwano.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/inflection

Weekly Downloads

70,745

Version

1.13.2

License

MIT

Unpacked Size

4.56 kB

Total Files

5

Last publish

Collaborators

  • types