[normalize-url] Updated definitions for version 3.3.0

This commit is contained in:
Mathieu M-Gosselin
2018-10-30 12:56:18 -04:00
parent 9f9f643011
commit d90119309c
+7 -1
View File
@@ -1,14 +1,20 @@
// Type definitions for normalize-url 1.9
// Type definitions for normalize-url 3.3
// Project: https://github.com/sindresorhus/normalize-url
// Definitions by: odin3 <https://github.com/odin3>
// BendingBender <https://github.com/BendingBender>
// Mathieu M-Gosselin <https://github.com/mathieumg>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare namespace normalizeUrl {
interface Options {
defaultProtocol?: string;
forceHttp?: boolean;
forceHttps?: boolean;
normalizeProtocol?: boolean;
normalizeHttps?: boolean;
sortQueryParameters?: boolean;
stripFragment?: boolean;
stripHash?: boolean;
stripWWW?: boolean;
removeQueryParameters?: Array<RegExp | string>;
removeTrailingSlash?: boolean;