mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 20:40:20 +00:00
add types for strict-uri-encode
This commit is contained in:
Vendored
+8
@@ -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]);
|
||||
@@ -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"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Reference in New Issue
Block a user