@nestjs/common/interfaces#ModuleMetadata TypeScript Examples
The following examples show how to use
@nestjs/common/interfaces#ModuleMetadata.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: module.ts From pebula-node with MIT License | 6 votes |
addMetadata(moduleMetadata: ModuleMetadata, overwrite = false): this {
for (const [key, value] of Object.entries(moduleMetadata)) {
if (overwrite) {
this.moduleMetadata[key as keyof ModuleMetadata] = value;
} else {
this.moduleMetadata[key as keyof ModuleMetadata].push(...value);
}
}
return this;
}
Example #2
Source File: module.ts From pebula-node with MIT License | 5 votes |
private moduleMetadata: ModuleMetadata = {
imports: [ NestBusSharedModule ],
controllers: [],
providers: [ ],
exports: [],
};