@tldraw/validate 3.14.0 → 3.14.2
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.
- package/dist-cjs/index.d.ts +2 -2
- package/dist-cjs/index.js +1 -1
- package/dist-esm/index.d.mts +2 -2
- package/dist-esm/index.mjs +1 -1
- package/package.json +2 -2
package/dist-cjs/index.d.ts
CHANGED
|
@@ -356,8 +356,8 @@ declare class ValidationError extends Error {
|
|
|
356
356
|
/** @public */
|
|
357
357
|
export declare class Validator<T> implements Validatable<T> {
|
|
358
358
|
readonly validationFn: ValidatorFn<T>;
|
|
359
|
-
readonly validateUsingKnownGoodVersionFn?: undefined | ValidatorUsingKnownGoodVersionFn<T
|
|
360
|
-
constructor(validationFn: ValidatorFn<T>, validateUsingKnownGoodVersionFn?: undefined | ValidatorUsingKnownGoodVersionFn<T
|
|
359
|
+
readonly validateUsingKnownGoodVersionFn?: undefined | ValidatorUsingKnownGoodVersionFn<T>;
|
|
360
|
+
constructor(validationFn: ValidatorFn<T>, validateUsingKnownGoodVersionFn?: undefined | ValidatorUsingKnownGoodVersionFn<T>);
|
|
361
361
|
/**
|
|
362
362
|
* Asserts that the passed value is of the correct type and returns it. The returned value is
|
|
363
363
|
* guaranteed to be referentially equal to the passed value.
|
package/dist-cjs/index.js
CHANGED
package/dist-esm/index.d.mts
CHANGED
|
@@ -356,8 +356,8 @@ declare class ValidationError extends Error {
|
|
|
356
356
|
/** @public */
|
|
357
357
|
export declare class Validator<T> implements Validatable<T> {
|
|
358
358
|
readonly validationFn: ValidatorFn<T>;
|
|
359
|
-
readonly validateUsingKnownGoodVersionFn?: undefined | ValidatorUsingKnownGoodVersionFn<T
|
|
360
|
-
constructor(validationFn: ValidatorFn<T>, validateUsingKnownGoodVersionFn?: undefined | ValidatorUsingKnownGoodVersionFn<T
|
|
359
|
+
readonly validateUsingKnownGoodVersionFn?: undefined | ValidatorUsingKnownGoodVersionFn<T>;
|
|
360
|
+
constructor(validationFn: ValidatorFn<T>, validateUsingKnownGoodVersionFn?: undefined | ValidatorUsingKnownGoodVersionFn<T>);
|
|
361
361
|
/**
|
|
362
362
|
* Asserts that the passed value is of the correct type and returns it. The returned value is
|
|
363
363
|
* guaranteed to be referentially equal to the passed value.
|
package/dist-esm/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tldraw/validate",
|
|
3
3
|
"description": "A runtime validation library by tldraw.",
|
|
4
|
-
"version": "3.14.
|
|
4
|
+
"version": "3.14.2",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "tldraw Inc.",
|
|
7
7
|
"email": "hello@tldraw.com"
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"lint": "yarn run -T tsx ../../internal/scripts/lint.ts"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@tldraw/utils": "3.14.
|
|
45
|
+
"@tldraw/utils": "3.14.2"
|
|
46
46
|
},
|
|
47
47
|
"jest": {
|
|
48
48
|
"preset": "../../internal/config/jest/node/jest-preset.js",
|