16 lines
570 B
TypeScript
16 lines
570 B
TypeScript
import * as ts from 'typescript/lib/tsserverlibrary';
|
|
import { OakBuildChecksConfig, CustomDiagnostic } from './checker';
|
|
export declare class I18nChecker {
|
|
private pwd;
|
|
private config;
|
|
private program;
|
|
private typeChecker;
|
|
private tsLib;
|
|
private localeDataCache;
|
|
private tFunctionCalls;
|
|
constructor(pwd: string, config: OakBuildChecksConfig, program: ts.Program, typeChecker: ts.TypeChecker, tsLib: typeof ts);
|
|
checkFile(sourceFile: ts.SourceFile): CustomDiagnostic[];
|
|
private collectTFunctionCalls;
|
|
private checkI18nKeys;
|
|
}
|