File tree 4 files changed +15
-4
lines changed
4 files changed +15
-4
lines changed Original file line number Diff line number Diff line change
1
+ export type Schema = import ( "./validate" ) . Schema ;
2
+ export type JSONSchema4 = import ( "./validate" ) . JSONSchema4 ;
3
+ export type JSONSchema6 = import ( "./validate" ) . JSONSchema6 ;
4
+ export type JSONSchema7 = import ( "./validate" ) . JSONSchema7 ;
5
+ export type ExtendedSchema = import ( "./validate" ) . ExtendedSchema ;
1
6
import { validate } from "./validate" ;
2
7
import { ValidationError } from "./validate" ;
3
8
import { enableValidation } from "./validate" ;
Original file line number Diff line number Diff line change @@ -2,15 +2,15 @@ export type JSONSchema4 = import("json-schema").JSONSchema4;
2
2
export type JSONSchema6 = import ( "json-schema" ) . JSONSchema6 ;
3
3
export type JSONSchema7 = import ( "json-schema" ) . JSONSchema7 ;
4
4
export type ErrorObject = import ( "ajv" ) . ErrorObject ;
5
- export type Extend = {
5
+ export type ExtendedSchema = {
6
6
formatMinimum ?: ( string | number ) | undefined ;
7
7
formatMaximum ?: ( string | number ) | undefined ;
8
8
formatExclusiveMinimum ?: ( string | boolean ) | undefined ;
9
9
formatExclusiveMaximum ?: ( string | boolean ) | undefined ;
10
10
link ?: string | undefined ;
11
11
undefinedAsNull ?: boolean | undefined ;
12
12
} ;
13
- export type Schema = ( JSONSchema4 | JSONSchema6 | JSONSchema7 ) & Extend ;
13
+ export type Schema = ( JSONSchema4 | JSONSchema6 | JSONSchema7 ) & ExtendedSchema ;
14
14
export type SchemaUtilErrorObject = ErrorObject & {
15
15
children ?: Array < ErrorObject > ;
16
16
} ;
Original file line number Diff line number Diff line change
1
+ /** @typedef {import("./validate").Schema } Schema */
2
+ /** @typedef {import("./validate").JSONSchema4 } JSONSchema4 */
3
+ /** @typedef {import("./validate").JSONSchema6 } JSONSchema6 */
4
+ /** @typedef {import("./validate").JSONSchema7 } JSONSchema7 */
5
+ /** @typedef {import("./validate").ExtendedSchema } ExtendedSchema */
6
+
1
7
const {
2
8
validate,
3
9
ValidationError,
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ const getAjv = memoize(() => {
50
50
/** @typedef {import("ajv").ErrorObject } ErrorObject */
51
51
52
52
/**
53
- * @typedef {Object } Extend
53
+ * @typedef {Object } ExtendedSchema
54
54
* @property {(string | number)= } formatMinimum
55
55
* @property {(string | number)= } formatMaximum
56
56
* @property {(string | boolean)= } formatExclusiveMinimum
@@ -59,7 +59,7 @@ const getAjv = memoize(() => {
59
59
* @property {boolean= } undefinedAsNull
60
60
*/
61
61
62
- /** @typedef {(JSONSchema4 | JSONSchema6 | JSONSchema7) & Extend } Schema */
62
+ /** @typedef {(JSONSchema4 | JSONSchema6 | JSONSchema7) & ExtendedSchema } Schema */
63
63
64
64
/** @typedef {ErrorObject & { children?: Array<ErrorObject> } } SchemaUtilErrorObject */
65
65
You can’t perform that action at this time.
0 commit comments