integer

Ensures the value is a valid integer.

const rules = {
  age: 'integer'
}

// or
const rules = {
  age: [
    rule('integer')
  ]
}

For customized build, you can import this rule as follows.

import { integer } from 'indicative/builds/validations'