validup 0.2.2 → 0.3.0

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/types.d.ts DELETED
@@ -1,24 +0,0 @@
1
- export type ObjectLiteral = Record<string | number, any>;
2
- export type ValidatorContext = {
3
- /**
4
- * The expanded mount path in the current container.
5
- */
6
- key: string;
7
- /**
8
- * The global mount path of the parent container.
9
- */
10
- path: PropertyKey[];
11
- /**
12
- * The actual value, which should be validated.
13
- */
14
- value: unknown;
15
- /**
16
- * The input data of the current container.
17
- */
18
- data: Record<string, any>;
19
- /**
20
- * The group name for which the validator is executed.
21
- */
22
- group?: string;
23
- };
24
- export type Validator = (ctx: ValidatorContext) => Promise<unknown> | unknown;
@@ -1 +0,0 @@
1
- export declare function hasOwnProperty<X extends {}, Y extends PropertyKey>(obj: X, prop: Y): obj is X & Record<Y, unknown>;
@@ -1,2 +0,0 @@
1
- export * from './has-own-property';
2
- export * from './object';
@@ -1 +0,0 @@
1
- export declare function isObject(input: unknown): input is Record<string, any>;