1 | import TokenProcessor from "../TokenProcessor";
|
2 | import RootTransformer from "./RootTransformer";
|
3 | import Transformer from "./Transformer";
|
4 | export default class TypeScriptTransformer extends Transformer {
|
5 | readonly rootTransformer: RootTransformer;
|
6 | readonly tokens: TokenProcessor;
|
7 | readonly isImportsTransformEnabled: boolean;
|
8 | constructor(rootTransformer: RootTransformer, tokens: TokenProcessor, isImportsTransformEnabled: boolean);
|
9 | process(): boolean;
|
10 | processEnum(isExport?: boolean): void;
|
11 | /**
|
12 | * Rather than try to compute the actual enum values at compile time, we just create variables for
|
13 | * each one and let everything evaluate at runtime. There's some additional complexity due to
|
14 | * handling string literal names, including ones that happen to be valid identifiers.
|
15 | */
|
16 | processEnumBody(enumName: string): void;
|
17 | }
|