@tldraw/validate 4.4.0 → 4.5.0-canary.034ea85352da
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
|
@@ -885,7 +885,7 @@ declare class ValidationError extends Error {
|
|
|
885
885
|
*/
|
|
886
886
|
export declare class Validator<T> implements Validatable<T> {
|
|
887
887
|
readonly validationFn: ValidatorFn<T>;
|
|
888
|
-
readonly validateUsingKnownGoodVersionFn?: undefined | ValidatorUsingKnownGoodVersionFn<T>;
|
|
888
|
+
readonly validateUsingKnownGoodVersionFn?: undefined | ValidatorUsingKnownGoodVersionFn<T, T>;
|
|
889
889
|
/* Excluded from this release type: skipSameValueCheck */
|
|
890
890
|
/**
|
|
891
891
|
* Creates a new Validator instance.
|
|
@@ -894,7 +894,7 @@ export declare class Validator<T> implements Validatable<T> {
|
|
|
894
894
|
* validateUsingKnownGoodVersionFn - Optional performance-optimized validation function
|
|
895
895
|
* skipSameValueCheck - Internal flag to skip dev check for validators that transform values
|
|
896
896
|
*/
|
|
897
|
-
constructor(validationFn: ValidatorFn<T>, validateUsingKnownGoodVersionFn?: undefined | ValidatorUsingKnownGoodVersionFn<T>,
|
|
897
|
+
constructor(validationFn: ValidatorFn<T>, validateUsingKnownGoodVersionFn?: undefined | ValidatorUsingKnownGoodVersionFn<T, T>,
|
|
898
898
|
/** @internal */
|
|
899
899
|
skipSameValueCheck?: boolean);
|
|
900
900
|
/**
|
package/dist-cjs/index.js
CHANGED
|
@@ -41,7 +41,7 @@ var T = __toESM(require("./lib/validation"), 1);
|
|
|
41
41
|
var import_validation = require("./lib/validation");
|
|
42
42
|
(0, import_utils.registerTldrawLibraryVersion)(
|
|
43
43
|
"@tldraw/validate",
|
|
44
|
-
"4.
|
|
44
|
+
"4.5.0-canary.034ea85352da",
|
|
45
45
|
"cjs"
|
|
46
46
|
);
|
|
47
47
|
//# sourceMappingURL=index.js.map
|
package/dist-esm/index.d.mts
CHANGED
|
@@ -885,7 +885,7 @@ declare class ValidationError extends Error {
|
|
|
885
885
|
*/
|
|
886
886
|
export declare class Validator<T> implements Validatable<T> {
|
|
887
887
|
readonly validationFn: ValidatorFn<T>;
|
|
888
|
-
readonly validateUsingKnownGoodVersionFn?: undefined | ValidatorUsingKnownGoodVersionFn<T>;
|
|
888
|
+
readonly validateUsingKnownGoodVersionFn?: undefined | ValidatorUsingKnownGoodVersionFn<T, T>;
|
|
889
889
|
/* Excluded from this release type: skipSameValueCheck */
|
|
890
890
|
/**
|
|
891
891
|
* Creates a new Validator instance.
|
|
@@ -894,7 +894,7 @@ export declare class Validator<T> implements Validatable<T> {
|
|
|
894
894
|
* validateUsingKnownGoodVersionFn - Optional performance-optimized validation function
|
|
895
895
|
* skipSameValueCheck - Internal flag to skip dev check for validators that transform values
|
|
896
896
|
*/
|
|
897
|
-
constructor(validationFn: ValidatorFn<T>, validateUsingKnownGoodVersionFn?: undefined | ValidatorUsingKnownGoodVersionFn<T>,
|
|
897
|
+
constructor(validationFn: ValidatorFn<T>, validateUsingKnownGoodVersionFn?: undefined | ValidatorUsingKnownGoodVersionFn<T, T>,
|
|
898
898
|
/** @internal */
|
|
899
899
|
skipSameValueCheck?: boolean);
|
|
900
900
|
/**
|
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": "4.
|
|
4
|
+
"version": "4.5.0-canary.034ea85352da",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "tldraw Inc.",
|
|
7
7
|
"email": "hello@tldraw.com"
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"lint": "yarn run -T tsx ../../internal/scripts/lint.ts"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@tldraw/utils": "4.
|
|
46
|
+
"@tldraw/utils": "4.5.0-canary.034ea85352da"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"lazyrepo": "0.0.0-alpha.27"
|