Merge pull request #4976 from stpettersens/master

Type definitions and tests for camel-case
This commit is contained in:
Masahiro Wakame
2015-07-20 15:23:20 +09:00
2 changed files with 19 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
/// <reference path="camel-case.d.ts" />
import camelCase = require('camel-case');
console.log(camelCase('string')); // => "string"
console.log(camelCase('dot.case')); // => "dotCase"
console.log(camelCase('PascalCase')); // => "pascalCase"
console.log(camelCase('version 1.2.10')); // => "version1_2_10"
console.log(camelCase('STRING 1.2', 'tr')); // => "strıng1_2"
+9
View File
@@ -0,0 +1,9 @@
// Type definitions for camel-case
// Project: https://github.com/blakeembrey/camel-case
// Definitions by: Sam Saint-Pettersen <https://github.com/stpettersens>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
declare module "camel-case" {
function camelCase(string: string, locale?: string): string;
export = camelCase;
}