Skip to content

Commit b87cc20

Browse files
author
Christoph Bühler
committed
style: rename const
1 parent 921f475 commit b87cc20

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/code-generators/TypescriptCodeGenerator.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export type Generators = { [name: string]: (generatable: Generatable, options: T
3838
/**
3939
* Hash with all possible (yet implemented) generators.
4040
*/
41-
export const generators: Generators = {
41+
export const GENERATORS: Generators = {
4242
[SymbolSpecifier.name]: generateSymbolSpecifier,
4343
[MethodDeclaration.name]: generateMethodDeclaration,
4444
[ParameterDeclaration.name]: generateParameterDeclaration,
@@ -69,8 +69,8 @@ export class TypescriptCodeGenerator {
6969
* @memberof TypescriptCodeGenerator
7070
*/
7171
public generate(declaration: Generatable): string {
72-
if (generators[declaration.constructor.name]) {
73-
return generators[declaration.constructor.name](declaration, this.options);
72+
if (GENERATORS[declaration.constructor.name]) {
73+
return GENERATORS[declaration.constructor.name](declaration, this.options);
7474
}
7575
throw new NotGeneratableYetError(declaration);
7676
}

0 commit comments

Comments
 (0)