UNPKG

@nestjs/core

Version:

Nest - modern, fast, powerful node.js web framework (@core)

16 lines (15 loc) 811 B
import { DynamicModule } from '@nestjs/common/interfaces/modules/dynamic-module.interface'; import { Type } from '@nestjs/common/interfaces/type.interface'; import { ModuleOpaqueKeyFactory } from './interfaces/module-opaque-key-factory.interface'; export declare class DeepHashedModuleOpaqueKeyFactory implements ModuleOpaqueKeyFactory { private readonly moduleIdsCache; private readonly moduleTokenCache; private readonly logger; createForStatic(moduleCls: Type): string; createForDynamic(moduleCls: Type<unknown>, dynamicMetadata: Omit<DynamicModule, 'module'>): string; getStringifiedOpaqueToken(opaqueToken: object | undefined): string; getModuleId(metatype: Type<unknown>): string; getModuleName(metatype: Type<any>): string; private hashString; private replacer; }