mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 14:20:12 +00:00
Merge pull request #31173 from BendingBender/humanize-url
Add types for humanize-url
This commit is contained in:
4
types/humanize-url/humanize-url-tests.ts
Normal file
4
types/humanize-url/humanize-url-tests.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
import humanizeUrl = require('humanize-url');
|
||||
|
||||
// $ExpectType string
|
||||
humanizeUrl('https://www.sindresorhus.com/');
|
||||
8
types/humanize-url/index.d.ts
vendored
Normal file
8
types/humanize-url/index.d.ts
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
// Type definitions for humanize-url 2.0
|
||||
// Project: https://github.com/sindresorhus/humanize-url#readme
|
||||
// Definitions by: BendingBender <https://github.com/BendingBender>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
export = humanizeUrl;
|
||||
|
||||
declare function humanizeUrl(url: string): string;
|
||||
23
types/humanize-url/tsconfig.json
Normal file
23
types/humanize-url/tsconfig.json
Normal file
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": true,
|
||||
"strictFunctionTypes": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"humanize-url-tests.ts"
|
||||
]
|
||||
}
|
||||
1
types/humanize-url/tslint.json
Normal file
1
types/humanize-url/tslint.json
Normal file
@@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Reference in New Issue
Block a user