// decorator to use to fix the javascript bind issue.
export function AutoBind(_, _2, descriptor) {
    const originMethod = descriptor.value;
    const adjustedDescriptor = {
        configurable: true,
        enumerable: false,
        get() {
            const boundFunction = originMethod.bind(this);
            return boundFunction;
        },
        set(boundFunction) {
            descriptor.value = boundFunction;
        }
    };
    return adjustedDescriptor;
}
//# sourceMappingURL=AutoBind.js.map