PATH:
opt
/
bitninja-dispatcher
/
node_modules
/
class-validator
/
esm2015
/
decorator
/
number
import { buildMessage, ValidateBy } from '../common/ValidateBy'; export const IS_POSITIVE = 'isPositive'; /** * Checks if the value is a positive number greater than zero. */ export function isPositive(value) { return typeof value === 'number' && value > 0; } /** * Checks if the value is a positive number greater than zero. */ export function IsPositive(validationOptions) { return ValidateBy({ name: IS_POSITIVE, validator: { validate: (value, args) => isPositive(value), defaultMessage: buildMessage(eachPrefix => eachPrefix + '$property must be a positive number', validationOptions), }, }, validationOptions); } //# sourceMappingURL=IsPositive.js.map
[+]
..
[-] Max.js.map
[edit]
[-] IsDivisibleBy.js
[edit]
[-] IsDivisibleBy.js.map
[edit]
[-] Min.js
[edit]
[-] Min.js.map
[edit]
[-] Max.js
[edit]
[-] IsNegative.js
[edit]
[-] IsNegative.js.map
[edit]
[-] IsPositive.js.map
[edit]
[-] IsPositive.js
[edit]