Options
All
  • Public
  • Public/Protected
  • All
Menu

@alterior/annotations

Index

Variables

Const ANNOTATIONS_KEY

ANNOTATIONS_KEY: "__annotations__" = "__annotations__"

Const CONSTRUCTOR_PARAMETERS_ANNOTATIONS_KEY

CONSTRUCTOR_PARAMETERS_ANNOTATIONS_KEY: "__parameters__" = "__parameters__"

Const Frozen

Frozen: AnnotationDecorator<any[]> = Mutator.create(site => [site.target, site.target.prototype].forEach(x => Object.freeze(x)),{ validTargets: ['class'] })

Freeze a class and its instances.

Const Label

Label: AnnotationDecorator<[string]> = LabelAnnotation.decorator()

Const METHOD_PARAMETER_ANNOTATIONS_KEY

METHOD_PARAMETER_ANNOTATIONS_KEY: "__parameter__metadata__" = "__parameter__metadata__"

Const PROPERTY_ANNOTATIONS_KEY

PROPERTY_ANNOTATIONS_KEY: "__prop__metadata__" = "__prop__metadata__"

Const Sealed

Sealed: AnnotationDecorator<any[]> = Mutator.create(site => [site.target, site.target.prototype].forEach(x => Object.seal(x)),{ validTargets: ['class'] })

Seal a class and its instances.

Functions

MetadataName

  • MetadataName(name: string): (Anonymous function)

makeDecorator

Generated using TypeDoc