schemaglobin
Advanced tools
Comparing version 4.0.2 to 4.0.3
@@ -1,3 +0,2 @@ | ||
export { NullIfOptional, FalseIfOptional, EmptyIfOptional, DeepPartial, UnknownObject } from "./types"; | ||
export { SchemaOptions, ValidateFlags, Schema, SchemaType, Schemas, SchemasType } from "./Schema"; | ||
export * from "./Schema"; | ||
export * from "./schemas/ArraySchema"; | ||
@@ -4,0 +3,0 @@ export * from "./schemas/BooleanSchema"; |
@@ -6,3 +6,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
// Export all schemas. | ||
// Export schemas. | ||
__export(require("./schemas/ArraySchema")); | ||
@@ -9,0 +9,0 @@ __export(require("./schemas/BooleanSchema")); |
@@ -61,4 +61,4 @@ import type { Invalid } from "./Invalid"; | ||
/** Convert a `Schemas` into its resulting type. */ | ||
export declare type SchemasType<S extends Schemas> = Readonly<{ | ||
export declare type SchemasType<S extends Schemas> = { | ||
[K in keyof S]: SchemaType<S[K]>; | ||
}>; | ||
}; |
{ | ||
"name": "schemaglobin", | ||
"description": "Validate user-entered data.", | ||
"version": "4.0.2", | ||
"version": "4.0.3", | ||
"repository": "https://github.com/dhoulb/schemaglobin", | ||
@@ -6,0 +6,0 @@ "author": "Dave Houlbrooke <dave@shax.com>", |
@@ -1,6 +0,5 @@ | ||
// Export all types. | ||
export { NullIfOptional, FalseIfOptional, EmptyIfOptional, DeepPartial, UnknownObject } from "./types"; | ||
export { SchemaOptions, ValidateFlags, Schema, SchemaType, Schemas, SchemasType } from "./Schema"; | ||
// Export schema. | ||
export * from "./Schema"; | ||
// Export all schemas. | ||
// Export schemas. | ||
export * from "./schemas/ArraySchema"; | ||
@@ -7,0 +6,0 @@ export * from "./schemas/BooleanSchema"; |
@@ -64,2 +64,2 @@ import type { Invalid } from "./Invalid"; | ||
/** Convert a `Schemas` into its resulting type. */ | ||
export type SchemasType<S extends Schemas> = Readonly<{ [K in keyof S]: SchemaType<S[K]> }>; | ||
export type SchemasType<S extends Schemas> = { [K in keyof S]: SchemaType<S[K]> }; |
@@ -1,2 +0,2 @@ | ||
import { map, string, number, boolean, Schema, NumberSchema, MapSchema, Invalid } from "../../src"; | ||
import { map, string, number, boolean, NumberSchema, MapSchema, Invalid } from "../../src"; | ||
@@ -3,0 +3,0 @@ // Tests. |
@@ -1,2 +0,3 @@ | ||
import { object, number, StringSchema, NumberSchema, BooleanSchema, ObjectSchema, Invalid, DeepPartial } from "../../src"; | ||
import { object, number, StringSchema, NumberSchema, BooleanSchema, ObjectSchema, Invalid } from "../../src"; | ||
import { DeepPartial } from "../../src/types"; | ||
@@ -3,0 +4,0 @@ // Tests. |
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
230062
4748