tessl install tessl/npm-io-ts@2.2.0TypeScript runtime type system for IO decoding/encoding
Agent Success
Agent success rate when using this tile
72%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.14x
Baseline
Agent success rate without this tile
63%
A validation library for product data that validates multiple independent fields in parallel.
{ name: "Laptop", price: 999, quantity: 5 } @test{ name: "Laptop", price: 999, quantity: 5 } @test{ name: "Laptop", price: 999, quantity: 5 } when all fields are valid @test{ name: 123, price: "999", quantity: "5" } @test@generates
import { Either } from 'fp-ts/Either';
/**
* Validates a product name field independently
*/
export function validateName(input: unknown): Either<Error[], string>;
/**
* Validates a product price field independently
*/
export function validatePrice(input: unknown): Either<Error[], number>;
/**
* Validates a product quantity field independently
*/
export function validateQuantity(input: unknown): Either<Error[], number>;
/**
* Validates all product fields by combining independent validations
*/
export function validateProduct(input: unknown): Either<Error[], { name: string; price: number; quantity: number }>;Provides decoder composition for combining independent field validations.
@satisfied-by
Provides Either type for representing validation results.
@satisfied-by