class-autobind-decorator
Advanced tools
Comparing version 3.0.0 to 3.0.1
@@ -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; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
51282
848