@hadss/hmrouter-plugin
Version:
HMRouter Compiler Plugin
10 lines (9 loc) • 597 B
TypeScript
import { Expression, SourceFile } from 'ts-morph';
import { HMRouterExtensionContext } from '../../HMRouterExtensionContext';
export interface IConstantResolver {
setContext(context: HMRouterExtensionContext): void;
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;
}