typebox 1.0.14 → 1.0.15

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.
@@ -1,5 +1,10 @@
1
1
  import type { Static, TProperties, TSchema } from '../../type/index.mjs';
2
2
  export declare class AssertError extends Error {
3
+ readonly cause: {
4
+ source: string;
5
+ errors: object[];
6
+ value: unknown;
7
+ };
3
8
  constructor(source: string, value: unknown, errors: object[]);
4
9
  }
5
10
  /** Asserts the a value matches the given type. This function returns a TypeScript type asserts predicate and will throw AssertError if value does not match. */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "typebox",
3
3
  "description": "A Runtime Type System for JavaScript",
4
- "version": "1.0.14",
4
+ "version": "1.0.15",
5
5
  "keywords": [
6
6
  "typescript",
7
7
  "jsonschema"