@loopback/docs
Version:
Documentation files rendered at [https://loopback.io](https://loopback.io)
24 lines (16 loc) • 802 B
Markdown
---
lang: en
title: 'API docs: metadata.decoratoroptions.allowinheritance'
keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI
sidebar: lb4_sidebar
editurl: https://github.com/loopbackio/loopback-next/tree/master/packages/metadata
permalink: /doc/en/lb4/apidocs.metadata.decoratoroptions.allowinheritance.html
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@loopback/metadata](./metadata.md) > [DecoratorOptions](./metadata.decoratoroptions.md) > [allowInheritance](./metadata.decoratoroptions.allowinheritance.md)
## DecoratorOptions.allowInheritance property
Controls if inherited metadata will be honored. Default to `true`<!-- -->.
<b>Signature:</b>
```typescript
allowInheritance?: boolean;
```