typescript-runtime-schemas
Version:
A TypeScript schema generation tool that extracts Zod schemas from TypeScript source files with runtime validation support. Generate validation schemas directly from your existing TypeScript types with support for computed types and constraint-based valid
12 lines (11 loc) • 312 B
TypeScript
/**
* Utility functions for source code detection and path handling
*/
/**
* Check if input is TypeScript source code vs file path
*/
export declare function isSourceCode(input: string): boolean;
/**
* Check if input looks like a file path
*/
export declare function looksLikePath(input: string): boolean;