Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#1258: added some props into IsURLOptions interface #1259

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Makarovks320
Copy link

@Makarovks320 Makarovks320 commented Nov 1, 2023

I have added some props into IsURLOptions interface that may be needed in the function isFQDN()

Relevant issue:
Closes #1258

Description

To-do list

  • [-] I have added tests for what I changed.
  • This pull request is ready to merge.

these props may be needed in the function isFQDN()
src/options.ts Outdated
@@ -1012,6 +1012,9 @@ export interface IsURLOptions {
validate_length?: boolean;
allow_fragments?: boolean;
allow_query_components?: boolean;
allow_numeric_tld?: boolean;
allow_wildcard?: boolean;
ignore_max_length?: boolean;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey, WDYT of making IsURLOptions extend from IsFQDNOptions?
We can then remove a couple of the repeated properties from here.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey, OK!

@coveralls
Copy link

coveralls commented Nov 6, 2023

Coverage Status

coverage: 100.0%. remained the same
when pulling 20a70da on Makarovks320:#1258
into 28a8d5f on express-validator:master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TS Error. Type 'IsURLOptions' does not include some properties
3 participants