mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-15 09:37:52 +08:00
Add types for normalize-url
This commit is contained in:
20
types/normalize-url/index.d.ts
vendored
Normal file
20
types/normalize-url/index.d.ts
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
// Type definitions for normalize-url v1.9.1
|
||||
// Project: https://github.com/sindresorhus/normalize-url
|
||||
// Definitions by: odin3 <https://github.com/odin3>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
declare module NormalizeUrl {
|
||||
interface INormalizeUrlArgs {
|
||||
normalizeProtocol: boolean;
|
||||
normalizeHttps: boolean;
|
||||
stripFragment: boolean;
|
||||
stripWWW: boolean;
|
||||
removeQueryParameters: string[];
|
||||
removeTrailingSlash: boolean;
|
||||
removeDirectoryIndex: RegExp[];
|
||||
}
|
||||
|
||||
function normalizeUrl(url: string, args?: INormalizeUrlArgs): string;
|
||||
}
|
||||
|
||||
export = NormalizeUrl.normalizeUrl;
|
||||
21
types/normalize-url/tsconfig.json
Normal file
21
types/normalize-url/tsconfig.json
Normal file
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": false,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user