Skip to content

Commit

Permalink
feat(types): Change signature of IntType constructor.
Browse files Browse the repository at this point in the history
  • Loading branch information
CheerlessCloud committed Aug 14, 2017
1 parent 62fd286 commit 28314b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/types/int.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import NumberType from './number';
const { round, abs } = Math;

class IntType extends NumberType {
constructor(min, max) {
super(min, max);
constructor({ min, max } = {}) {
super({ min, max });

this.validators.push(val => (abs(val) - round(abs(val))) === 0);
}
Expand Down

0 comments on commit 28314b0

Please sign in to comment.