@aomex/validator
Advanced tools
Comparing version 0.0.15 to 0.0.16
# @aomex/validator | ||
## 0.0.16 | ||
### Patch Changes | ||
- [`9ec29cd`](https://github.com/aomex/aomex/commit/9ec29cd492014431b12f542d487a1ae282fe473f) Thanks [@geekact](https://github.com/geekact)! - fix(validator): enum rule doesn't accept readonly array | ||
## 0.0.15 | ||
@@ -4,0 +10,0 @@ |
@@ -549,4 +549,4 @@ import { OpenAPI } from '@aomex/openapi-type'; | ||
email(): EmailValidator<string>; | ||
enum<T extends string | number | boolean>(ranges: [T]): EnumValidator<T>; | ||
enum<T extends string | number | boolean, T1 extends string | number | boolean>(ranges: [T, ...T1[]]): EnumValidator<T | T1>; | ||
enum<T extends string | number | boolean>(ranges: T[]): EnumValidator<T>; | ||
enum<T extends readonly (string | number | boolean)[]>(ranges: T): EnumValidator<T[number]>; | ||
hash(algorithm: HashValidator.Algorithm): HashValidator<string>; | ||
@@ -553,0 +553,0 @@ /** |
{ | ||
"name": "@aomex/validator", | ||
"version": "0.0.15", | ||
"version": "0.0.16", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "type": "module", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
136115