UNPKG

type-compiler

Version:

A TypeScript compiler plugin for enhanced runtime type checking and analysis with Zod validation

11 lines (10 loc) 405 B
import ts from 'typescript'; import { TypeCompilerOptions } from './types'; /** * Create a transformer for generating Zod schemas */ export declare function createZodTransformer(program: ts.Program, options: TypeCompilerOptions): any; /** * Creates TypeScript transformer factories for the TypeCompiler plugin */ export declare function createTypeCompilerPlugin(options?: TypeCompilerOptions): any[];