mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-04 20:21:46 +00:00
Add tslint.json and add style fixes
This commit is contained in:
Vendored
+12
-11
@@ -1,20 +1,21 @@
|
||||
// Type definitions for normalize-url v1.9.1
|
||||
// Type definitions for normalize-url 1.9
|
||||
// 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[];
|
||||
declare namespace NormalizeUrl {
|
||||
interface NormalizeUrlArgs {
|
||||
normalizeProtocol?: boolean;
|
||||
normalizeHttps?: boolean;
|
||||
stripFragment?: boolean;
|
||||
stripWWW?: boolean;
|
||||
removeQueryParameters?: string[];
|
||||
removeTrailingSlash?: boolean;
|
||||
removeDirectoryIndex?: RegExp[];
|
||||
}
|
||||
|
||||
function normalizeUrl(url: string, args?: INormalizeUrlArgs): string;
|
||||
// tslint:disable-next-line align
|
||||
function normalizeUrl(url: string, args?: NormalizeUrlArgs): string;
|
||||
}
|
||||
|
||||
export = NormalizeUrl.normalizeUrl;
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"extends": "dtslint/dt.json",
|
||||
"rules": {
|
||||
// This package uses the Function type, and it will take effort to fix.
|
||||
"ban-types": false
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user