mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-03 14:27:04 +00:00
added missing type to ArraySchema::pattern()
This commit is contained in:
Vendored
+1
@@ -714,6 +714,7 @@ export interface ArraySchema extends AnySchema {
|
||||
* Specifies the exact number of items in the array.
|
||||
*/
|
||||
length(limit: number): this;
|
||||
length(limit: Reference): this;
|
||||
|
||||
/**
|
||||
* Requires the array values to be unique.
|
||||
|
||||
@@ -318,6 +318,7 @@ arrSchema = arrSchema.ordered([schemaMap, schemaMap, schemaLike]);
|
||||
arrSchema = arrSchema.min(num);
|
||||
arrSchema = arrSchema.max(num);
|
||||
arrSchema = arrSchema.length(num);
|
||||
arrSchema = arrSchema.length(ref);
|
||||
arrSchema = arrSchema.unique();
|
||||
arrSchema = arrSchema.unique((a, b) => a.test === b.test);
|
||||
arrSchema = arrSchema.unique('customer.id');
|
||||
|
||||
Vendored
+1
@@ -670,6 +670,7 @@ export interface ArraySchema extends AnySchema {
|
||||
* Specifies the exact number of items in the array.
|
||||
*/
|
||||
length(limit: number): this;
|
||||
length(limit: Reference): this;
|
||||
|
||||
/**
|
||||
* Requires the array values to be unique.
|
||||
|
||||
@@ -299,6 +299,7 @@ arrSchema = arrSchema.ordered([schemaMap, schemaMap, schemaLike]);
|
||||
arrSchema = arrSchema.min(num);
|
||||
arrSchema = arrSchema.max(num);
|
||||
arrSchema = arrSchema.length(num);
|
||||
arrSchema = arrSchema.length(ref);
|
||||
arrSchema = arrSchema.unique();
|
||||
arrSchema = arrSchema.unique((a, b) => a.test === b.test);
|
||||
arrSchema = arrSchema.unique('customer.id');
|
||||
|
||||
Reference in New Issue
Block a user