mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-27 11:40:08 +08:00
Merge pull request #5142 from stpettersens/master
Type definitions and tests for lower-case-first
This commit is contained in:
@@ -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
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user