Skip to content

Commit

Permalink
chore(deps): update (#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait committed Dec 23, 2020
1 parent f8110ef commit 87b86a5
Show file tree
Hide file tree
Showing 7 changed files with 1,736 additions and 1,522 deletions.
5 changes: 1 addition & 4 deletions declarations/ValidationError.d.ts
Expand Up @@ -12,14 +12,11 @@ export type ValidationErrorConfiguration = {
};
export type PostFormatter = (
formattedError: string,
error: import('ajv').ErrorObject & {
children?: import('ajv').ErrorObject[] | undefined;
}
error: import('./validate').SchemaUtilErrorObject
) => string;
export type SchemaUtilErrorObject = import('ajv').ErrorObject & {
children?: import('ajv').ErrorObject[] | undefined;
};
export type SPECIFICITY = number;
declare class ValidationError extends Error {
/**
* @param {Array<SchemaUtilErrorObject>} errors
Expand Down
5 changes: 3 additions & 2 deletions declarations/index.d.ts
@@ -1,2 +1,3 @@
export const validate: typeof import('./validate').validate;
export const ValidationError: typeof import('./ValidationError').default;
import { validate } from './validate';
import { ValidationError } from './validate';
export { validate, ValidationError };
11 changes: 4 additions & 7 deletions declarations/util/Range.d.ts
Expand Up @@ -51,14 +51,11 @@ declare class Range {
* @param {boolean} logic is not logic applied
* @return {RangeValue} computed value and it's exclusive flag
*/
static getRangeValue(
values: Array<[number, boolean]>,
logic: boolean
): [number, boolean];
static getRangeValue(values: Array<RangeValue>, logic: boolean): RangeValue;
/** @type {Array<RangeValue>} */
_left: Array<[number, boolean]>;
_left: Array<RangeValue>;
/** @type {Array<RangeValue>} */
_right: Array<[number, boolean]>;
_right: Array<RangeValue>;
/**
* @param {number} value
* @param {boolean=} exclusive
Expand All @@ -79,4 +76,4 @@ declare namespace Range {
export { RangeValue, RangeValueCallback };
}
type RangeValue = [number, boolean];
type RangeValueCallback = (rangeValue: [number, boolean]) => boolean;
type RangeValueCallback = (rangeValue: RangeValue) => boolean;
7 changes: 4 additions & 3 deletions declarations/validate.d.ts
@@ -1,7 +1,7 @@
export type JSONSchema4 = import('json-schema').JSONSchema4;
export type JSONSchema6 = import('json-schema').JSONSchema6;
export type JSONSchema7 = import('json-schema').JSONSchema7;
export type ErrorObject = import('ajv').ErrorObject;
export type ErrorObject = Ajv.ErrorObject;
export type Extend = {
formatMinimum?: number | undefined;
formatMaximum?: number | undefined;
Expand All @@ -12,8 +12,8 @@ export type Schema =
| (import('json-schema').JSONSchema4 & Extend)
| (import('json-schema').JSONSchema6 & Extend)
| (import('json-schema').JSONSchema7 & Extend);
export type SchemaUtilErrorObject = import('ajv').ErrorObject & {
children?: import('ajv').ErrorObject[] | undefined;
export type SchemaUtilErrorObject = Ajv.ErrorObject & {
children?: Ajv.ErrorObject[] | undefined;
};
export type PostFormatter = (
formattedError: string,
Expand All @@ -36,4 +36,5 @@ export function validate(
configuration?: ValidationErrorConfiguration | undefined
): void;
import ValidationError from './ValidationError';
import Ajv = require('ajv');
export { ValidationError };

0 comments on commit 87b86a5

Please sign in to comment.