{"ast":null,"code":"import { defaultMetadataStorage } from '../storage';\n/**\n * Specifies a type of the property.\n * The given TypeFunction can return a constructor. A discriminator can be given in the options.\n *\n * Can be applied to properties only.\n */\nexport function Type(typeFunction, options = {}) {\n  return function (target, propertyName) {\n    const reflectedType = Reflect.getMetadata('design:type', target, propertyName);\n    defaultMetadataStorage.addTypeMetadata({\n      target: target.constructor,\n      propertyName: propertyName,\n      reflectedType,\n      typeFunction,\n      options\n    });\n  };\n}\n//# sourceMappingURL=type.decorator.js.map","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}