UNPKG

@loopback/docs

Version:
25 lines (16 loc) 908 B
--- lang: en title: 'API docs: metadata.decoratoroptions.cloneinputspec' keywords: LoopBack 4.0, LoopBack 4 sidebar: lb4_sidebar permalink: /doc/en/lb4/apidocs.metadata.decoratoroptions.cloneinputspec.html --- <!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@loopback/metadata](./metadata.md) &gt; [DecoratorOptions](./metadata.decoratoroptions.md) &gt; [cloneInputSpec](./metadata.decoratoroptions.cloneinputspec.md) ## DecoratorOptions.cloneInputSpec property Controls if the value of `spec` argument will be cloned. Sometimes we use shared spec for the decoration, but the decorator function might need to mutate the object. Cloning the input spec makes it safe to use the same spec (`template`<!-- -->) to decorate different members. Default to `true`<!-- -->. <b>Signature:</b> ```typescript cloneInputSpec?: boolean; ```