mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Merge pull request #5125 from stpettersens/master
Type definitions and tests for lower-case
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
/// <reference path="lower-case.d.ts" />
|
||||
|
||||
import lowerCase = require('lower-case');
|
||||
|
||||
console.log(lowerCase(null)); // => ""
|
||||
console.log(lowerCase('STRING')); // => "string"
|
||||
console.log(lowerCase('string', 'tr')); // => "strıng"
|
||||
|
||||
console.log(lowerCase({ toString: function() { return 'TEST' } })); // => "test"
|
||||
Vendored
+9
@@ -0,0 +1,9 @@
|
||||
// Type definitions for lower-case
|
||||
// Project: https://github.com/blakeembrey/lower-case
|
||||
// Definitions by: Sam Saint-Pettersen <https://github.com/stpettersens>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
declare module "lower-case" {
|
||||
function lowerCase(string: any, locale?: string): string;
|
||||
export = lowerCase;
|
||||
}
|
||||
Reference in New Issue
Block a user