Type definitions and tests for lower-case-first

This commit is contained in:
Sam Saint-Pettersen
2015-07-30 10:47:52 +01:00
parent eb5ee58283
commit 524d202369
2 changed files with 16 additions and 0 deletions
@@ -0,0 +1,7 @@
/// <reference path="lower-case-first.d.ts" />
import lowerCaseFirst = require('lower-case-first');
console.log(lowerCaseFirst(null)); // => ""
console.log(lowerCaseFirst('STRING')); // => "sTRING"
+9
View File
@@ -0,0 +1,9 @@
// Type definitions for lower-case-first
// Project: https://github.com/blakeembrey/lower-case-first
// Definitions by: Sam Saint-Pettersen <https://github.com/stpettersens>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
declare module "lower-case-first" {
function lowerCaseFirst(string: string, locale?: string): string;
export = lowerCaseFirst;
}