@vitrical/utils
Advanced tools
Comparing version 1.3.8 to 1.3.9
@@ -136,4 +136,18 @@ "use strict"; | ||
}); | ||
it('object', () => { | ||
const result = (0, validation_1.validateObject)({ | ||
obj: { | ||
str: 'string', | ||
num: 'number', | ||
}, | ||
}, { | ||
obj: { | ||
str: 'string', | ||
num: 1, | ||
}, | ||
}); | ||
expect(result.length).toEqual(0); | ||
}); | ||
}); | ||
}); | ||
//# sourceMappingURL=validation.test.js.map |
@@ -219,3 +219,22 @@ import { validateObject } from '../validation' | ||
}) | ||
it('object', () => { | ||
const result = validateObject( | ||
{ | ||
obj: { | ||
str: 'string', | ||
num: 'number', | ||
}, | ||
}, | ||
{ | ||
obj: { | ||
str: 'string', | ||
num: 1, | ||
}, | ||
} | ||
) | ||
expect(result.length).toEqual(0) | ||
}) | ||
}) | ||
}) |
{ | ||
"name": "@vitrical/utils", | ||
"version": "1.3.8", | ||
"version": "1.3.9", | ||
"description": "Collection of useful functions and typings", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -23,3 +23,5 @@ export declare const objectHasProperty: (obj: unknown, property: string | number) => obj is { | ||
}> = { | ||
[key in keyof T]: SchemaInput | ValidateObjectOptions<T>; | ||
[key in keyof T]: SchemaInput | ValidateObjectOptions<{ | ||
[key: string]: unknown; | ||
}>; | ||
}; | ||
@@ -26,0 +28,0 @@ export declare const isValidationType: (validationType: ValidationLength | ValidationArray | ValidationRegular | ValidationArrayOptional, value: unknown) => boolean; |
Sorry, the diff of this file is not supported yet
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
60813
1064