Skip to content

Commit

Permalink
chore: update dev-deps (#128)
Browse files Browse the repository at this point in the history
  • Loading branch information
snitin315 committed May 25, 2021
1 parent cc29077 commit ae3b128
Show file tree
Hide file tree
Showing 12 changed files with 2,022 additions and 2,186 deletions.
1 change: 1 addition & 0 deletions .husky/.gitignore
@@ -0,0 +1 @@
_
4 changes: 4 additions & 0 deletions .husky/commit-msg
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx --no-install commitlint --edit $1
4 changes: 4 additions & 0 deletions .husky/pre-commit
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx lint-staged
21 changes: 5 additions & 16 deletions declarations/ValidationError.d.ts
@@ -1,22 +1,11 @@
export default ValidationError;
export type JSONSchema6 = import('json-schema').JSONSchema6;
export type JSONSchema7 = import('json-schema').JSONSchema7;
export type Schema =
| (import('json-schema').JSONSchema4 & import('./validate').Extend)
| (import('json-schema').JSONSchema6 & import('./validate').Extend)
| (import('json-schema').JSONSchema7 & import('./validate').Extend);
export type ValidationErrorConfiguration = {
name?: string | undefined;
baseDataPath?: string | undefined;
postFormatter?: import('./validate').PostFormatter | undefined;
};
export type PostFormatter = (
formattedError: string,
error: import('./validate').SchemaUtilErrorObject
) => string;
export type SchemaUtilErrorObject = import('ajv').ErrorObject & {
children?: import('ajv').ErrorObject[] | undefined;
};
export type Schema = import('./validate').Schema;
export type ValidationErrorConfiguration =
import('./validate').ValidationErrorConfiguration;
export type PostFormatter = import('./validate').PostFormatter;
export type SchemaUtilErrorObject = import('./validate').SchemaUtilErrorObject;
declare class ValidationError extends Error {
/**
* @param {Array<SchemaUtilErrorObject>} errors
Expand Down
4 changes: 1 addition & 3 deletions declarations/keywords/absolutePath.d.ts
@@ -1,9 +1,7 @@
export default addAbsolutePathKeyword;
export type Ajv = import('ajv').Ajv;
export type ValidateFunction = import('ajv').ValidateFunction;
export type SchemaUtilErrorObject = import('ajv').ErrorObject & {
children?: import('ajv').ErrorObject[] | undefined;
};
export type SchemaUtilErrorObject = import('../validate').SchemaUtilErrorObject;
/**
*
* @param {Ajv} ajv
Expand Down
5 changes: 1 addition & 4 deletions declarations/util/hints.d.ts
@@ -1,6 +1,3 @@
export function stringHints(schema: Schema, logic: boolean): string[];
export function numberHints(schema: Schema, logic: boolean): string[];
export type Schema =
| (import('json-schema').JSONSchema4 & import('../validate').Extend)
| (import('json-schema').JSONSchema6 & import('../validate').Extend)
| (import('json-schema').JSONSchema7 & import('../validate').Extend);
export type Schema = import('../validate').Schema;
12 changes: 4 additions & 8 deletions declarations/validate.d.ts
@@ -1,19 +1,16 @@
export type JSONSchema4 = import('json-schema').JSONSchema4;
export type JSONSchema6 = import('json-schema').JSONSchema6;
export type JSONSchema7 = import('json-schema').JSONSchema7;
export type ErrorObject = Ajv.ErrorObject;
export type ErrorObject = import('ajv').ErrorObject;
export type Extend = {
formatMinimum?: number | undefined;
formatMaximum?: number | undefined;
formatExclusiveMinimum?: boolean | undefined;
formatExclusiveMaximum?: boolean | undefined;
};
export type Schema =
| (import('json-schema').JSONSchema4 & Extend)
| (import('json-schema').JSONSchema6 & Extend)
| (import('json-schema').JSONSchema7 & Extend);
export type SchemaUtilErrorObject = Ajv.ErrorObject & {
children?: Ajv.ErrorObject[] | undefined;
export type Schema = (JSONSchema4 | JSONSchema6 | JSONSchema7) & Extend;
export type SchemaUtilErrorObject = ErrorObject & {
children?: Array<ErrorObject>;
};
export type PostFormatter = (
formattedError: string,
Expand All @@ -36,5 +33,4 @@ export function validate(
configuration?: ValidationErrorConfiguration | undefined
): void;
import ValidationError from './ValidationError';
import Ajv = require('ajv');
export { ValidationError };
6 changes: 0 additions & 6 deletions husky.config.js

This file was deleted.

0 comments on commit ae3b128

Please sign in to comment.