---
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/strongloop/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) &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;
```

