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 validator for handling API responses that can return different types of data based on the operation result.
@generates
/**
* Validates an API response that can be in one of three states:
* - Success: Contains user data
* - Error: Contains error information
* - Loading: Indicates operation in progress
*
* @param response - The API response object to validate
* @returns Either an array of validation errors or the validated response
*/
export function validateResponse(response: unknown): any;Provides runtime type validation with union type support.
@satisfied-by