Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
class MetadataStorage
import { MetadataStorage } from "https://deno.land/x/class_transformer@v0.2.3-beta.1/src/metadata/MetadataStorage.ts";

Storage all library metadata.

Properties

private
_ancestorsMap: Map<Function, Function[]>
private
_excludeMetadatas: Map<Function, Map<string, ExcludeMetadata>>
private
_exposeMetadatas: Map<Function, Map<string, ExposeMetadata>>
private
_transformMetadatas: Map<Function, Map<string, TransformMetadata[]>>
private
_typeMetadatas: Map<Function, Map<string, TypeMetadata>>

Methods

private
findMetadata<T extends { target: Function; propertyName: string; }>(
metadatas: Map<Function, Map<string, T>>,
target: Function,
propertyName: string,
): T
private
findMetadatas<T extends { target: Function; propertyName: string; }>(
metadatas: Map<Function, Map<string, T[]>>,
target: Function,
propertyName: string,
): T[]
private
getAncestors(target: Function): Function[]
private
getMetadata<T extends { target: Function; propertyName: string; }>(metadatas: Map<Function, Map<String, T>>, target: Function): T[]
findExcludeMetadata(target: Function, propertyName: string): ExcludeMetadata
findExposeMetadata(target: Function, propertyName: string): ExposeMetadata
findExposeMetadataByCustomName(target: Function, name: string): ExposeMetadata
findTransformMetadatas(
target: Function,
propertyName: string,
transformationType: TransformationType,
): TransformMetadata[]
findTypeMetadata(target: Function, propertyName: string)
getExcludedProperties(target: Function, transformationType: TransformationType): string[]
getExposedMetadatas(target: Function): ExposeMetadata[]
getExposedProperties(target: Function, transformationType: TransformationType): string[]
getStrategy(target: Function): "excludeAll" | "exposeAll" | "none"