Skip to main content
Module

x/abstruct/mod.ts>GreaterThanValidator

Abstract structure for JavaScript data validation
Go to Latest
class GreaterThanValidator
extends IsValidator<In>
import { GreaterThanValidator } from "https://deno.land/x/abstruct@1.0.0-beta.12/mod.ts";

Validator equivalent to greater than(<) operator.

Examples

Example 1

import { GreaterThanValidator } from "https://deno.land/x/abstruct@$VERSION/validators/operators/greater_than.ts";
const validator = new GreaterThanValidator(8);

Constructors

new
GreaterThanValidator(base: In)

Methods

is(input: In): input is In
toString(): string