@hestia-earth/data-validation 0.40.0 → 0.40.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/index.d.mts +12 -0
- package/index.d.ts +12 -0
- package/index.js +753 -0
- package/index.mjs +750 -0
- package/package.json +32 -7
- package/validation.json +5 -0
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -17
- package/dist/validations.d.ts +0 -10
- package/dist/validations.js +0 -10
- package/search-results.json +0 -387
- package/src/index.ts +0 -1
- package/src/validations.ts +0 -22
- package/src/version.ts +0 -1
package/index.d.mts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
interface IValidation {
|
|
2
|
+
function: string;
|
|
3
|
+
level: 'error' | 'warning';
|
|
4
|
+
message: string;
|
|
5
|
+
}
|
|
6
|
+
interface IValidations {
|
|
7
|
+
validations: IValidation[];
|
|
8
|
+
}
|
|
9
|
+
declare const validations: IValidations;
|
|
10
|
+
declare const validationsByMessage: Record<string, IValidation[]>;
|
|
11
|
+
|
|
12
|
+
export { type IValidation, type IValidations, validations, validationsByMessage };
|
package/index.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
interface IValidation {
|
|
2
|
+
function: string;
|
|
3
|
+
level: 'error' | 'warning';
|
|
4
|
+
message: string;
|
|
5
|
+
}
|
|
6
|
+
interface IValidations {
|
|
7
|
+
validations: IValidation[];
|
|
8
|
+
}
|
|
9
|
+
declare const validations: IValidations;
|
|
10
|
+
declare const validationsByMessage: Record<string, IValidation[]>;
|
|
11
|
+
|
|
12
|
+
export { type IValidation, type IValidations, validations, validationsByMessage };
|