---
lang: en
title: 'API docs: metadata.decoratoroptions.allowinheritance'
keywords: LoopBack 4.0, LoopBack 4
sidebar: lb4_sidebar
permalink: /doc/en/lb4/apidocs.metadata.decoratoroptions.allowinheritance.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; [allowInheritance](./metadata.decoratoroptions.allowinheritance.md)

## DecoratorOptions.allowInheritance property

Controls if inherited metadata will be honored. Default to `true`<!-- -->.

<b>Signature:</b>

```typescript
allowInheritance?: boolean;
```

