Skip to content

Commit

Permalink
fix: use correct type for host_whitelist and host_backlist in `Is…
Browse files Browse the repository at this point in the history
…URLOptions`

closes typestack#172
  • Loading branch information
NoNameProvided committed Mar 17, 2018
1 parent d9896ed commit c7182b9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ _no new features in this release_
* fixed wrong type info in `ValidatorOptions`
* fixed wrong type info in `ValidationSchema` (the `options` key now is optional)
* corrected `IsNumericString` to `IsNumberString` in the README
* fixed type of `host_whitelist` and `host_backlist` in `IsURLOptions`.

### 0.8.0 [BREAKING CHANGE]

Expand Down
4 changes: 2 additions & 2 deletions src/validation/ValidationTypeOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ export interface IsURLOptions {
require_protocol?: boolean;
require_valid_protocol?: boolean;
allow_underscores?: boolean;
host_whitelist?: boolean;
host_blacklist?: boolean;
host_whitelist?: false | string[];
host_blacklist?: false | string[];
allow_trailing_dot?: boolean;
allow_protocol_relative_urls?: boolean;
}
Expand Down

0 comments on commit c7182b9

Please sign in to comment.