mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-10 11:40:16 +08:00
Merge branch 'master' into rename-repo-url
This commit is contained in:
Vendored
+9
-9
@@ -4,34 +4,34 @@
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
declare module "inflected" {
|
||||
|
||||
module Options {
|
||||
|
||||
namespace Options {
|
||||
interface Humanize {
|
||||
capitalize: boolean;
|
||||
capitalize: boolean;
|
||||
}
|
||||
|
||||
|
||||
interface Transliterate {
|
||||
locale: string;
|
||||
replacement: string;
|
||||
}
|
||||
|
||||
|
||||
interface Parameterize {
|
||||
separator: string;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
interface Inflected {
|
||||
pluralize(word: string, locale?: string): string;
|
||||
singularize(word: string, locale?: string): string;
|
||||
camelize(term: string, uppercaseFirstLetter?: boolean): string;
|
||||
underscore(camelCaseWord: string): string;
|
||||
humanize(lowerCaseAndUnderscoredWord: string,
|
||||
humanize(lowerCaseAndUnderscoredWord: string,
|
||||
options?: Options.Humanize): string;
|
||||
titleize(sentence: string): string;
|
||||
tableize(className: string): string;
|
||||
classify(tableName: string): string;
|
||||
dasherize(underscoredWord: string): string;
|
||||
foreignKey(className: string,
|
||||
foreignKey(className: string,
|
||||
separateClassNameAndIdWithUnderscore?:boolean): string;
|
||||
ordinal(number: number): string;
|
||||
ordinalize(number: number): string;
|
||||
@@ -41,4 +41,4 @@ declare module "inflected" {
|
||||
|
||||
var Inflector:Inflected;
|
||||
export = Inflector;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user