PATH:
opt
/
bitninja-dispatcher
/
node_modules
/
class-transformer
/
esm5
/
decorators
{"version":3,"file":"expose.decorator.js","sourceRoot":"","sources":["../../../src/decorators/expose.decorator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAC;AAGpD;;;;;;GAMG;AACH,MAAM,UAAU,MAAM,CAAC,OAA2B;IAA3B,wBAAA,EAAA,YAA2B;IAChD;;;;;OAKG;IACH,OAAO,UAAU,MAAW,EAAE,YAA8B;QAC1D,sBAAsB,CAAC,iBAAiB,CAAC;YACvC,MAAM,EAAE,MAAM,YAAY,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,WAAW;YAChE,YAAY,EAAE,YAAsB;YACpC,OAAO,SAAA;SACR,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC","sourcesContent":["import { defaultMetadataStorage } from '../storage';\nimport { ExposeOptions } from '../interfaces';\n\n/**\n * Marks the given class or property as included. By default the property is included in both\n * constructorToPlain and plainToConstructor transformations. It can be limited to only one direction\n * via using the `toPlainOnly` or `toClassOnly` option.\n *\n * Can be applied to class definitions and properties.\n */\nexport function Expose(options: ExposeOptions = {}): PropertyDecorator & ClassDecorator {\n /**\n * NOTE: The `propertyName` property must be marked as optional because\n * this decorator used both as a class and a property decorator and the\n * Typescript compiler will freak out if we make it mandatory as a class\n * decorator only receives one parameter.\n */\n return function (object: any, propertyName?: string | Symbol): void {\n defaultMetadataStorage.addExposeMetadata({\n target: object instanceof Function ? object : object.constructor,\n propertyName: propertyName as string,\n options,\n });\n };\n}\n"]}
[-] index.js.map
[edit]
[+]
..
[-] transform.decorator.js.map
[edit]
[-] expose.decorator.js.map
[edit]
[-] transform.decorator.js
[edit]
[-] type.decorator.js.map
[edit]
[-] transform-instance-to-instance.decorator.js
[edit]
[-] transform-instance-to-instance.decorator.js.map
[edit]
[-] transform-plain-to-instance.decorator.js
[edit]
[-] exclude.decorator.js.map
[edit]
[-] expose.decorator.js
[edit]
[-] index.js
[edit]
[-] exclude.decorator.js
[edit]
[-] transform-instance-to-plain.decorator.js.map
[edit]
[-] transform-plain-to-instance.decorator.js.map
[edit]
[-] type.decorator.js
[edit]
[-] transform-instance-to-plain.decorator.js
[edit]