|
| 1 | +class Analyzer { |
| 2 | + // (undocumented) |
| 3 | + constructor(errorHandler?: ApiErrorHandler); |
| 4 | + public analyze(options: IApiAnalyzerOptions): void; |
| 5 | + public static defaultErrorHandler(message: string, fileName: string, lineNumber: number): void; |
| 6 | + public docItemLoader: DocItemLoader; |
| 7 | + // (undocumented) |
| 8 | + public errorHandler: ApiErrorHandler; |
| 9 | + // (undocumented) |
| 10 | + public package: ApiPackage; |
| 11 | + public reportError(message: string, sourceFile: ts.SourceFile, start: number): void; |
| 12 | + // (undocumented) |
| 13 | + public typeChecker: ts.TypeChecker; |
| 14 | +} |
| 15 | + |
| 16 | +class ApiFileGenerator extends ApiItemVisitor { |
| 17 | + // (undocumented) |
| 18 | + protected _indentedWriter: IndentedWriter; |
| 19 | + public static areEquivalentApiFileContents(actualFileContent: string, expectedFileContent: string): boolean; |
| 20 | + // (undocumented) |
| 21 | + public generateApiFileContent(analyzer: Analyzer): string; |
| 22 | + // (undocumented) |
| 23 | + protected visitApiEnum(apiEnum: ApiEnum): void; |
| 24 | + // (undocumented) |
| 25 | + protected visitApiEnumValue(apiEnumValue: ApiEnumValue): void; |
| 26 | + // (undocumented) |
| 27 | + protected visitApiFunction(apiFunction: ApiFunction): void; |
| 28 | + // (undocumented) |
| 29 | + protected visitApiMember(apiMember: ApiMember): void; |
| 30 | + // (undocumented) |
| 31 | + protected visitApiPackage(apiPackage: ApiPackage): void; |
| 32 | + // (undocumented) |
| 33 | + protected visitApiParam(apiParam: ApiParameter): void; |
| 34 | + // (undocumented) |
| 35 | + protected visitApiStructuredType(apiStructuredType: ApiStructuredType): void; |
| 36 | + public writeApiFile(reportFilename: string, analyzer: Analyzer): void; |
| 37 | +} |
| 38 | + |
| 39 | +class ApiJsonGenerator extends ApiItemVisitor { |
| 40 | + // (undocumented) |
| 41 | + protected apiTagsToSkip: ApiTag[]; |
| 42 | + // (undocumented) |
| 43 | + protected jsonOutput: Object; |
| 44 | + // (undocumented) |
| 45 | + protected visitApiEnum(apiEnum: ApiEnum, refObject?: Object): void; |
| 46 | + // (undocumented) |
| 47 | + protected visitApiEnumValue(apiEnumValue: ApiEnumValue, refObject?: Object): void; |
| 48 | + // (undocumented) |
| 49 | + protected visitApiFunction(apiFunction: ApiFunction, refObject?: Object): void; |
| 50 | + // (undocumented) |
| 51 | + protected visitApiMember(apiMember: ApiMember, refObject?: Object): void; |
| 52 | + // (undocumented) |
| 53 | + protected visitApiMethod(apiMethod: ApiMethod, refObject?: Object): void; |
| 54 | + // (undocumented) |
| 55 | + protected visitApiPackage(apiPackage: ApiPackage, refObject?: Object): void; |
| 56 | + // (undocumented) |
| 57 | + protected visitApiParam(apiParam: ApiParameter, refObject?: Object): void; |
| 58 | + // (undocumented) |
| 59 | + protected visitApiProperty(apiProperty: ApiProperty, refObject?: Object): void; |
| 60 | + // (undocumented) |
| 61 | + protected visitApiStructuredType(apiStructuredType: ApiStructuredType, refObject?: Object): void; |
| 62 | + // (undocumented) |
| 63 | + public writeJsonFile(reportFilename: string, analyzer: Analyzer): void; |
| 64 | +} |
| 65 | + |
| 66 | +class ExternalApiHelper { |
| 67 | + public static generateApiJson(rootDir: string, libFolder: string, externalPackageFilePath: string): void; |
| 68 | +} |
| 69 | + |
| 70 | +interface IApiAnalyzerOptions { |
| 71 | + compilerOptions: ts.CompilerOptions; |
| 72 | + entryPointFile: string; |
| 73 | + otherFiles?: string[]; |
| 74 | +} |
| 75 | + |
| 76 | +// WARNING: Unsupported export: ApiErrorHandler |
0 commit comments