Merge pull request #17534 from vutran/is-alphanumerical

Add typings for is-alphanumerical
This commit is contained in:
Paul van Brenk
2017-06-29 13:12:04 -07:00
committed by GitHub
4 changed files with 37 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
// Type definitions for is-alphanumerical 1.0
// Project: https://github.com/wooorm/is-alphanumerical/
// Definitions by: Vu Tran <https://github.com/vutran>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare function isAlphanumerical(val: string | boolean | number): boolean;
export = isAlphanumerical;
@@ -0,0 +1,7 @@
import isAlphanumerical = require('is-alphanumerical');
isAlphanumerical('a');
isAlphanumerical('z');
isAlphanumerical('0');
isAlphanumerical('9');
isAlphanumerical('💩');
+22
View File
@@ -0,0 +1,22 @@
{
"compilerOptions": {
"module": "commonjs",
"lib": [
"es6"
],
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true,
"baseUrl": "../",
"typeRoots": [
"../"
],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
},
"files": [
"index.d.ts",
"is-alphanumerical-tests.ts"
]
}
+1
View File
@@ -0,0 +1 @@
{ "extends": "dtslint/dt.json" }