We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1e3435 commit 563cc35Copy full SHA for 563cc35
title-case/title-case-tests.ts
@@ -0,0 +1,7 @@
1
+/// <reference path="title-case.d.ts" />
2
+
3
+import titleCase = require('title-case');
4
5
+console.log(titleCase('string')); // => "String"
6
+console.log(titleCase('PascalCase')); // => "Pascal Case"
7
+console.log(titleCase('STRING', 'tr')); // => "Strıng"
title-case/title-case.d.ts
@@ -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;
8
+ export = titleCase;
9
+}
0 commit comments