Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TypeMetadataInternal

Data object which holds raw information collected for particular Type from class metadataInternal decorators. This is internal class of metadataInternal package and should never be used outside of it.

author

Jānis Radiņš / Kristaps Peļņa

Hierarchy

  • TypeMetadataInternal

Index

Constructors

constructor

Properties

type

type: Type<any>

Type of class prototype this instance holds metadataInternal for

Accessors

constructorArguments

  • get constructorArguments(): Type<any>[]

mappedInterfaces

  • get mappedInterfaces(): Type<any>[]

moduleDescriptor

optionalConstructorArguments

  • get optionalConstructorArguments(): number[]
  • Indices of injectable constructor arguments that are optional and should be omitted, in case if there is no mapping found in Injector, with no error.

    Returns number[]

optionalPropertyInjections

  • get optionalPropertyInjections(): string[]

postConstructMethods

  • get postConstructMethods(): string[]

preDestroyMethods

  • get preDestroyMethods(): string[]

propertyInjections

  • get propertyInjections(): Map<string, Type<any>>

Methods

addPostConstructMethod

  • addPostConstructMethod(name: string): void | Error

addPreDestroyMethod

  • addPreDestroyMethod(name: string): void | Error

addPropertyInjection

  • addPropertyInjection(name: string, type: Type<any>): void | Error

setConstructorArguments

  • setConstructorArguments(value: Type<any>[]): void | Error

setMappedInterfaces

  • setMappedInterfaces(value: Type<any>[]): void | Error

setModuleDescriptor

setOptionalConstructorArgument

  • setOptionalConstructorArgument(index: number): void | Error

setOptionalPropertyInjection

  • setOptionalPropertyInjection(name: string): void | Error