validation.ts
Advanced tools
Comparing version 0.0.26 to 0.0.27
@@ -96,7 +96,7 @@ import { Result, Ok, Err, Option, None, Some } from 'space-lift'; | ||
export declare class ObjectValidator<P extends Props> extends Validator<ObjectOf<P>> { | ||
private props; | ||
props: P; | ||
constructor(props: P); | ||
validate(v: Value, config?: Configuration, c?: Context): Ok<ValidationError[], never> | Err<ValidationError[], never> | Ok<never, any> | Err<never, any>; | ||
validate(v: Value, config?: Configuration, c?: Context): Validation<ObjectOf<P>>; | ||
} | ||
export declare function object<P extends Props>(props: P): Validator<ObjectOf<P>>; | ||
export declare function object<P extends Props>(props: P): ObjectValidator<P>; | ||
export declare class KeyOfValidator<KEYS extends object> extends Validator<keyof KEYS> { | ||
@@ -103,0 +103,0 @@ private keys; |
@@ -96,7 +96,7 @@ import { Result, Ok, Err, Option, None, Some } from 'space-lift'; | ||
export declare class ObjectValidator<P extends Props> extends Validator<ObjectOf<P>> { | ||
private props; | ||
props: P; | ||
constructor(props: P); | ||
validate(v: Value, config?: Configuration, c?: Context): Ok<ValidationError[], never> | Err<ValidationError[], never> | Ok<never, any> | Err<never, any>; | ||
validate(v: Value, config?: Configuration, c?: Context): Validation<ObjectOf<P>>; | ||
} | ||
export declare function object<P extends Props>(props: P): Validator<ObjectOf<P>>; | ||
export declare function object<P extends Props>(props: P): ObjectValidator<P>; | ||
export declare class KeyOfValidator<KEYS extends object> extends Validator<keyof KEYS> { | ||
@@ -103,0 +103,0 @@ private keys; |
{ | ||
"name": "validation.ts", | ||
"version": "0.0.26", | ||
"version": "0.0.27", | ||
"description": "Validation for TypeScript", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
76114