---
lang: en
title: 'API docs: context.bindingfromclassoptions'
keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI
sidebar: lb4_sidebar
editurl: https://github.com/loopbackio/loopback-next/tree/master/packages/context
permalink: /doc/en/lb4/apidocs.context.bindingfromclassoptions.html
---

<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@loopback/context](./context.md) &gt; [BindingFromClassOptions](./context.bindingfromclassoptions.md)

## BindingFromClassOptions type

Options to customize the binding created from a class

**Signature:**

```typescript
export type BindingFromClassOptions = {
    key?: BindingAddress;
    type?: string;
    name?: string;
    namespace?: string;
    typeNamespaceMapping?: TypeNamespaceMapping;
    defaultNamespace?: string;
    defaultScope?: BindingScope;
};
```
**References:** [BindingAddress](./context.bindingaddress.md)<!-- -->, [TypeNamespaceMapping](./context.typenamespacemapping.md)<!-- -->, [BindingScope](./context.bindingscope.md)


