@hadss/hmrouter-plugin
Version:
HMRouter Compiler Plugin
8 lines (7 loc) • 465 B
TypeScript
import { Expression, SourceFile } from 'ts-morph';
export interface IConstantResolver {
resolveConstant(value: any, sourceFile: SourceFile, filePath: string): any;
resolvePropertyValue(value: Expression, sourceFile: SourceFile, filePath: string): any;
getVariableFilePath(variableName: string, sourceFile: SourceFile, filePath: string): string;
getOtherModuleVariableFilePath(moduleName: string, variableName: string, modulePath: string): string;
}