Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
Signed-off-by: Francis <colifran@amazon.com>
  • Loading branch information
colifran committed May 11, 2024
1 parent 0e9763e commit 54956e0
Showing 1 changed file with 2 additions and 17 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint-disable import/no-extraneous-dependencies */
import { ExternalModule, InterfaceType, Module, TypeScriptRenderer } from '@cdklabs/typewriter';
import { InterfaceType, Module, TypeScriptRenderer } from '@cdklabs/typewriter';
import * as fs from 'fs-extra';
import { HandlerFrameworkClass, HandlerFrameworkClassProps } from './classes';
import { ComponentType, ComponentProps } from './config';
Expand All @@ -10,7 +10,6 @@ import { ImportableModule } from './modules';
export class HandlerFrameworkModule extends Module {
private readonly renderer = new TypeScriptRenderer();
private readonly importer = new ModuleImporter();
private readonly externalModules = new Map<string, boolean>();
private readonly _interfaces = new Map<string, InterfaceType>();
private _hasComponents = false;

Expand Down Expand Up @@ -76,26 +75,12 @@ export class HandlerFrameworkModule extends Module {
}

/**
* Add an external module to be imported.
*/
public addExternalModule(module: ExternalModule) {
this.externalModules.set(module.fqn, true);
}

/**
*
* Register an external module to be imported into this module.
*/
public registerImport(module: ImportableModule, options: ModuleImportOptions = {}) {
this.importer.registerImport(module, options);
}

/**
* If an external module has been added as an import to this module.
*/
public hasExternalModule(module: ExternalModule) {
return this.externalModules.has(module.fqn);
}

/**
* Register an interface with this module.
*/
Expand Down

0 comments on commit 54956e0

Please sign in to comment.