mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 20:40:20 +00:00
Merge pull request #17534 from vutran/is-alphanumerical
Add typings for is-alphanumerical
This commit is contained in:
Vendored
+7
@@ -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('💩');
|
||||
@@ -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"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Reference in New Issue
Block a user