We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46fbe95 commit 3bb1a1fCopy full SHA for 3bb1a1f
index.d.ts
@@ -188,7 +188,25 @@ export interface UrlValidatorOptions extends DefaultValidatorOptions {
188
hash?: boolean
189
}
190
191
-export const url: (options?: UrlValidatorOptions) => Validator
+interface URL {
192
+ protocol?: string;
193
+ hash?: string;
194
+ host?: string;
195
+ ipv4?: string;
196
+ ipv6?: string;
197
+ port?: number;
198
+ search?: string;
199
+ path?: string;
200
+ basicAuth?: {
201
+ username: string;
202
+ password?: string;
203
+ };
204
+}
205
+
206
+export const url : {
207
+ (options?: UrlValidatorOptions): Validator;
208
+ parseURL: (url: string, options?: UrlValidatorOptions) => URL | null;
209
210
211
declare const Validators: {
212
formatMessage: (msg: MessageDescriptor) => string
0 commit comments