@forklaunch/validator 0.2.3 → 0.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,7 +7,7 @@ import { LiteralSchema } from "../types/schema.types";
7
7
  * @template IdiomaticSchema<unknown> - The type for idiomatic schemas.
8
8
  * @template Catchall - The catch-all type for all schemas.
9
9
  */
10
- export interface SchemaValidator<SchematicFunction = <T>(schema: T) => unknown, OptionalFunction = <T>(schema: T) => unknown, ArrayFunction = <T>(schema: T) => unknown, UnionFunction = <T>(schemas: T[]) => unknown, LiteralFunction = <T extends LiteralSchema>(schema: T) => unknown, ValidationFunction = <T>(schema: T) => unknown, OpenAPIFunction = <T>(schema: T) => SchemaObject> {
10
+ export interface SchemaValidator<SchematicFunction = <T>(schema: T) => unknown, OptionalFunction = <T>(schema: T) => unknown, ArrayFunction = <T>(schema: T) => unknown, UnionFunction = <T>(schemas: T[]) => unknown, LiteralFunction = <T extends LiteralSchema>(schema: T) => unknown, ValidationFunction = <T>(schema: T, value: unknown) => boolean, OpenAPIFunction = <T>(schema: T) => SchemaObject> {
11
11
  /**
12
12
  * Validator for string type.
13
13
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forklaunch/validator",
3
- "version": "0.2.3",
3
+ "version": "0.2.5",
4
4
  "description": "Schema validator for ForkLaunch components.",
5
5
  "files": [
6
6
  "dist"
@@ -68,6 +68,10 @@
68
68
  "./zod/types": {
69
69
  "types": "./dist/zod/types/zod.schema.types.d.ts",
70
70
  "default": "./dist/zod/types/zod.schema.types.js"
71
+ },
72
+ "./tests/mockSchemaValidator": {
73
+ "types": "./dist/tests/mockSchemaValidator.d.ts",
74
+ "default": "./dist/tests/mockSchemaValidator.js"
71
75
  }
72
76
  }
73
77
  }