add types for strict-uri-encode

This commit is contained in:
Hoishin
2018-03-21 04:14:46 +09:00
parent 9f4c751261
commit 714de22bba
4 changed files with 39 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
// Type definitions for strict-uri-encode 2.0
// Project: https://github.com/kevva/strict-uri-encode#readme
// Definitions by: Keiichiro Amemiya <https://github.com/hoishin>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export = strict_uri_encode;
declare function strict_uri_encode(str: string): string;
@@ -0,0 +1,7 @@
import strictUriEncode = require('strict-uri-encode');
// $ExpectType string
strictUriEncode('!#$@*()jsjs');
// $ExpectError
strictUriEncode([12, 23]);
+23
View File
@@ -0,0 +1,23 @@
{
"compilerOptions": {
"module": "commonjs",
"lib": [
"es6"
],
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true,
"baseUrl": "../",
"typeRoots": [
"../"
],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true,
"strictFunctionTypes": true
},
"files": [
"index.d.ts",
"strict-uri-encode-tests.ts"
]
}
+1
View File
@@ -0,0 +1 @@
{ "extends": "dtslint/dt.json" }