mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Merge pull request #5477 from stpettersens/master
Type definitions and tests for upper-case-first
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
/// <reference path="upper-case-first.d.ts" />
|
||||
|
||||
import upperCaseFirst = require('upper-case-first');
|
||||
|
||||
console.log(upperCaseFirst(null)); // => ""
|
||||
console.log(upperCaseFirst('string')); // => "String"
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
// Type definitions for upper-case-first
|
||||
// Project: https://github.com/blakeembrey/upper-case-first
|
||||
// Definitions by: Sam Saint-Pettersen <https://github.com/stpettersens>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
declare module "upper-case-first" {
|
||||
function upperCaseFirst(string: string): string;
|
||||
export = upperCaseFirst;
|
||||
}
|
||||
Reference in New Issue
Block a user