Socket
Socket
Sign inDemoInstall

validation.ts

Package Overview
Dependencies
1
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.26 to 0.0.27

6

commonjs/validation.d.ts

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc