@autometa/bind-decorator
TypeScript icon, indicating that this package has built-in type declarations

0.5.1 • Public • Published

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()
  }
}

Package Sidebar

Install

npm i @autometa/bind-decorator

Weekly Downloads

34

Version

0.5.1

License

ISC

Unpacked Size

14.3 kB

Total Files

13

Last publish

Collaborators

  • benah