Skip to content

Commit

Permalink
Merge 9bfa044 into 0163461
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavohenke committed Feb 1, 2020
2 parents 0163461 + 9bfa044 commit 0940bf2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/utils.ts
Expand Up @@ -2,7 +2,7 @@ export const bindAll = <T>(object: T): { [K in keyof T]: T[K] } => {
const protoKeys = Object.getOwnPropertyNames(Object.getPrototypeOf(object)) as (keyof T)[];
protoKeys.forEach(key => {
const maybeFn = object[key];
if (typeof maybeFn === 'function') {
if (typeof maybeFn === 'function' && key !== 'constructor') {
object[key] = maybeFn.bind(object);
}
});
Expand Down
8 changes: 1 addition & 7 deletions tsconfig.json
Expand Up @@ -4,14 +4,8 @@
"declaration": true,
"module": "commonjs",
"moduleResolution": "node",
"target": "es6",
"target": "es2017",
"charset": "utf-8",
"lib": [
"dom",
"es6",
"es2016.array.include",
"es2017.object"
],
"pretty": true,
"noImplicitAny": true,
"noImplicitReturns": true,
Expand Down

0 comments on commit 0940bf2

Please sign in to comment.