mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 22:30:01 +00:00
Merge pull request #4951 from stpettersens/master
Type definitions and tests for node title-case module
This commit is contained in:
7
title-case/title-case-tests.ts
Normal file
7
title-case/title-case-tests.ts
Normal 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
9
title-case/title-case.d.ts
vendored
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user