UNPKG

1.04 kBTypeScriptView Raw
1import * as ts from 'typescript';
2import { PluginOptions } from '../merge-options';
3type ClassMetadata = Record<string, ts.ObjectLiteralExpression>;
4export declare class ModelClassVisitor {
5 private importsToAdd;
6 private readonly _typeImports;
7 private readonly _collectedMetadata;
8 get typeImports(): Record<string, string>;
9 get collectedMetadata(): Array<[
10 ts.CallExpression,
11 Record<string, ClassMetadata>
12 ]>;
13 visit(sourceFile: ts.SourceFile, ctx: ts.TransformationContext, program: ts.Program, pluginOptions: PluginOptions): ts.Node;
14 private addDescriptionToClassDecorators;
15 private amendFieldsDecorators;
16 private collectMetadataFromClassMembers;
17 private updateClassDeclaration;
18 private getOptionsFromFieldDecoratorOrUndefined;
19 private getTypeFromFieldDecoratorOrUndefined;
20 private createFieldMetadata;
21 private getTypeUsingTypeChecker;
22 private createEagerImports;
23 private normalizeImportPath;
24}
25export {};
26//# sourceMappingURL=model-class.visitor.d.ts.map
\No newline at end of file