🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@autometa/bind-decorator

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@autometa/bind-decorator

Binds the this keyword of a method. Respectfully a fork of https://www.npmjs.com/package/bind-decorator

latest
Source
npmnpm
Version
0.5.1
Version published
Maintainers
1
Created
Source

Introduction

Binds the this keyword on a class method.

This is a fork of bind-decorator for use with Autometa.

npm add @autometa/bind-decorator

Use

import { Bind } from "@autometa/bind-decorator";

class Foo {
  @Bind
  a() {
    // this.doStuff()
  }
}

Keywords

bind this keyword

FAQs

Package last updated on 22 Oct 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts