UNPKG

tiny-types

Version:

A tiny library that brings Tiny Types to JavaScript and TypeScript

18 lines (17 loc) 508 B
import { Predicate } from './Predicate'; /** * @desc Ensures that the `value` is greater than the `lowerBound`. * * @example * import { ensure, isGreaterThan, TinyType } from 'tiny-types'; * * class AgeInYears extends TinyType { * constructor(public readonly value: number) { * ensure('Age in years', value, isGreaterThan(0)); * } * } * * @param {number} lowerBound * @returns {Predicate<number>} */ export declare function isGreaterThan(lowerBound: number): Predicate<number>;