type-compiler
Version:
A TypeScript compiler plugin for enhanced runtime type checking and analysis with Zod validation
18 lines (17 loc) • 761 B
TypeScript
import ts from 'typescript';
/**
* Check if a file should be processed based on excludePatterns
*/
export declare function shouldProcessFile(fileName: string, excludePatterns?: string[]): boolean;
/**
* Check if a declaration is exported
*/
export declare function isExported(node: ts.Declaration): boolean;
/**
* Check if a type should be processed based on options
*/
export declare function shouldProcessType(declaration: ts.InterfaceDeclaration | ts.TypeAliasDeclaration | ts.ClassDeclaration | ts.EnumDeclaration, excludedTypes?: string[], includedTypes?: string[]): boolean;
/**
* Generate a stable ID for a type by hashing its name and position
*/
export declare function generateStableTypeId(type: ts.Type, typeChecker: ts.TypeChecker): string;