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