Type definitions and tests for is-upper-case

This commit is contained in:
Sam Saint-Pettersen
2015-07-28 18:58:36 +01:00
parent 2b7f8b7edc
commit ca697533d0
2 changed files with 16 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
/// <reference path="is-upper-case.d.ts" />
import isUpperCase = require('is-upper-case')
console.log(isUpperCase('STRING')); // => true
console.log(isUpperCase('String')); // => false
console.log(isUpperCase('string')); // => false
+9
View File
@@ -0,0 +1,9 @@
// Type definitions for is-upper-case
// Project: https://github.com/blakeembrey/is-upper-case
// Definitions by: Sam Saint-Pettersen <https://github.com/stpettersens>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
declare module "is-upper-case" {
function isUpperCase(string: string, locale?: string): boolean;
export = isUpperCase;
}