Merge pull request #4951 from stpettersens/master

Type definitions and tests for node title-case module
This commit is contained in:
Horiuchi_H
2015-07-17 16:35:05 +09:00
2 changed files with 16 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
/// <reference path="title-case.d.ts" />
import titleCase = require('title-case');
console.log(titleCase('string')); // => "String"
console.log(titleCase('PascalCase')); // => "Pascal Case"
console.log(titleCase('STRING', 'tr')); // => "Strıng"

9
title-case/title-case.d.ts vendored Normal file
View File

@@ -0,0 +1,9 @@
// Type definitions for title-case
// Project: https://github.com/blakeembrey/title-case
// Definitions by: Sam Saint-Pettersen <https://github.com/stpettersens>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
declare module "title-case" {
function titleCase(string1: string, string2?: string): string;
export = titleCase;
}