Merge pull request #5191 from stpettersens/master

Type definitions and tests for pascal-case
This commit is contained in:
Horiuchi_H
2015-08-04 12:59:03 +09:00
2 changed files with 18 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
/// <reference path="pascal-case.d.ts" />
import pascalCase = require('pascal-case');
console.log(pascalCase('string')); // => "String"
console.log(pascalCase('camelCase')); // => "CamelCase"
console.log(pascalCase('sentence case')); // => "SentenceCase"
console.log(pascalCase('MY STRING', 'tr')); // => "MyStrıng"
+9
View File
@@ -0,0 +1,9 @@
// Type definitions for pascal-case
// Project: https://github.com/blakeembrey/pascal-case
// Definitions by: Sam Saint-Pettersen <https://github.com/stpettersens>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
declare module "pascal-case" {
function pascalCase(string: string, locale?: string): string;
export = pascalCase;
}