UNPKG

@capgo/cli

Version:
7 lines (6 loc) 329 B
import { type StandardSchema } from './schema_validation'; /** * Validate options using a Standard Schema with CLI-friendly error messages. * Preserves the existing silent/log.error pattern used across all commands. */ export declare function validateOptions<T>(schema: StandardSchema<T>, data: unknown, silent?: boolean): T;