@loopback/docs
Version:
Documentation files rendered at [https://loopback.io](https://loopback.io)
28 lines (18 loc) • 665 B
Markdown
lang: en
title: 'API docs: context.binding.lock'
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.binding.lock.html
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@loopback/context](./context.md) > [Binding](./context.binding.md) > [lock](./context.binding.lock.md)
## Binding.lock() method
Lock the binding so that it cannot be rebound
<b>Signature:</b>
```typescript
lock(): this;
```
<b>Returns:</b>
this