UNPKG

type-compiler

Version:

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

23 lines (22 loc) 806 B
import ts from 'typescript'; import type { TypeCompilerOptions } from './types'; /** * Create a TypeScript compiler plugin */ export declare function typeCompilerPlugin(program: ts.Program, options?: TypeCompilerOptions): { before: ((program: ts.Program) => any)[]; }; /** * Create a TypeScript compiler plugin with Zod schema generation */ export declare function zodSchemaPlugin(program: ts.Program, options?: TypeCompilerOptions): { before: ((program: ts.Program) => any)[]; }; export { createTypeCompilerPlugin } from './transformers'; export { typeToZodSchema } from './type-processor'; export * from './types'; export * from './cache'; export * from './parallel'; export * from './utils'; export { logger, Logger, LogLevel, getLogger } from './logger'; export default typeCompilerPlugin;