Skip to main content
Version: 3.3

nasl.validation

declare namespace nasl.validation {
export function minLength(min: nasl.core.Integer): nasl.core.Boolean;
export function maxLength(min: nasl.core.Integer): nasl.core.Boolean;
export function rangeLength(min: nasl.core.Integer, max: nasl.core.Integer): nasl.core.Boolean;
export function min(min: nasl.core.Double | nasl.core.String | nasl.core.Date | nasl.core.DateTime): nasl.core.Boolean;
export function max(min: nasl.core.Double | nasl.core.String | nasl.core.Date | nasl.core.DateTime): nasl.core.Boolean;
export function range(min: nasl.core.Double | nasl.core.String | nasl.core.Date | nasl.core.DateTime, max: nasl.core.Double | nasl.core.String | nasl.core.Date | nasl.core.DateTime): nasl.core.Boolean;
export function pattern(re: RegExp): nasl.core.Boolean;
export function is(arg: nasl.core.Any): nasl.core.Boolean;
export function isNot(arg: nasl.core.Any): nasl.core.Boolean;
export function equals(arg: nasl.core.Any): nasl.core.Boolean;
export function notEquals(arg: nasl.core.Any): nasl.core.Boolean;
export function confirmed(value: nasl.core.Any): nasl.core.Boolean;
export function includes(arr: nasl.collection.List<nasl.core.Any>): nasl.core.Boolean;
export function excludes(arr: nasl.collection.List<nasl.core.Any>): nasl.core.Boolean;
export function included(arr: nasl.collection.List<nasl.core.Any>): nasl.core.Boolean;
export function excluded(arr: nasl.collection.List<nasl.core.Any>): nasl.core.Boolean;
export function unique(arr: nasl.collection.List<nasl.core.Any>): nasl.core.Boolean;
export function noDuplicates(): nasl.core.Boolean;
export function numeric(noSymbols?: nasl.core.Boolean): nasl.core.Boolean;
export function decimal(force?: nasl.core.Boolean, digits?: nasl.core.String): nasl.core.Boolean;
export function ip(version: nasl.core.Double): nasl.core.Boolean;
export function ipRange(version: nasl.core.Double): nasl.core.Boolean;
export function byteLength(min: nasl.core.Integer, max: nasl.core.Integer): nasl.core.Boolean;
export function divisibleBy(divisor: nasl.core.Integer | nasl.core.Long | nasl.core.Double): nasl.core.Boolean;
export function hash(algorithm?: nasl.core.String): nasl.core.Boolean;
export function isbn(version: nasl.core.String): nasl.core.Boolean;
export function iso8601(strict: nasl.core.Boolean): nasl.core.Boolean;
export function mobile(locale?: nasl.core.String, strict?: nasl.core.Boolean): nasl.core.Boolean;
export function postalCode(locale: nasl.core.String): nasl.core.Boolean;
export function uuid(version?: nasl.core.String): nasl.core.Boolean;
}