Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

class-autobind-decorator

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

class-autobind-decorator - npm Package Compare versions

Comparing version 3.0.0 to 3.0.1

32

build/index.d.ts

@@ -1,25 +0,15 @@

declare namespace autoBindMethodsFactory {
// All types exported to make things easier for consumers of this decorator.
export type ConstructorFunction<T> = {
new(...args: any[]): T;
};
export type ConstructorFunction<T> = {
new(...args: any[]): T;
};
export interface InputOptions {
methodsToIgnore?: Array<string>;
dontOptimize?: boolean
}
export interface autoBindMethodsDecorator<T> {
(constructor: ConstructorFunction<T>, options?: InputOptions): void;
}
export interface InputOptions {
methodsToIgnore?: Array<string>;
dontOptimize?: boolean
}
declare function autoBindMethodsFactory<T>(
input: autoBindMethodsFactory.ConstructorFunction<T>
): void;
export function autoBindMethods<T = any>(target: ConstructorFunction<T>): void;
export function autoBindMethods<T = any>(input?: InputOptions): (target: ConstructorFunction<T>) => void;
export function autoBindMethodsForReact<T = any>(target: ConstructorFunction<T>): void;
export function autoBindMethodsForReact<T = any>(input?: InputOptions): (target: ConstructorFunction<T>) => void;
declare function autoBindMethodsFactory<T>(
input?: autoBindMethodsFactory.InputOptions
): autoBindMethodsFactory.autoBindMethodsDecorator<T>;
export default autoBindMethodsFactory;
export default autoBindMethods;
# CHANGELOG
## v3.0.1 (12/7/2017)
- Fix type declarations
## v3.0.0 (11/16/2017)

@@ -4,0 +8,0 @@

{
"name": "class-autobind-decorator",
"version": "3.0.0",
"version": "3.0.1",
"description": "A small framework-agnostic utility for auto-binding \"class\" methods to instances (with customization options) using either \"legacy\" decorator syntax or plain old ES5 (without needing ES2015+ polyfills).",

@@ -5,0 +5,0 @@ "main": "build/index.js",

@@ -1,25 +0,15 @@

declare namespace autoBindMethodsFactory {
// All types exported to make things easier for consumers of this decorator.
export type ConstructorFunction<T> = {
new(...args: any[]): T;
};
export type ConstructorFunction<T> = {
new(...args: any[]): T;
};
export interface InputOptions {
methodsToIgnore?: Array<string>;
dontOptimize?: boolean
}
export interface autoBindMethodsDecorator<T> {
(constructor: ConstructorFunction<T>, options?: InputOptions): void;
}
export interface InputOptions {
methodsToIgnore?: Array<string>;
dontOptimize?: boolean
}
declare function autoBindMethodsFactory<T>(
input: autoBindMethodsFactory.ConstructorFunction<T>
): void;
export function autoBindMethods<T = any>(target: ConstructorFunction<T>): void;
export function autoBindMethods<T = any>(input?: InputOptions): (target: ConstructorFunction<T>) => void;
export function autoBindMethodsForReact<T = any>(target: ConstructorFunction<T>): void;
export function autoBindMethodsForReact<T = any>(input?: InputOptions): (target: ConstructorFunction<T>) => void;
declare function autoBindMethodsFactory<T>(
input?: autoBindMethodsFactory.InputOptions
): autoBindMethodsFactory.autoBindMethodsDecorator<T>;
export default autoBindMethodsFactory;
export default autoBindMethods;
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc