import * as check from "../../../sync/check/string"; export function isString (mixed : any) : mixed is string { return check.checkString(mixed) === undefined; } export function isMinLength (mixed : any, min : number) : mixed is string { return check.checkMinLength(mixed, min) === undefined; } export function isMaxLength (mixed : any, max : number) : mixed is string { return check.checkMaxLength(mixed, max) === undefined; } export function isLength (mixed : any, args : { min? : number, max? : number }) : mixed is string { return check.checkLength(mixed, args) === undefined; } export function isNonEmpty (mixed : any) : mixed is string { return check.checkNonEmpty(mixed) === undefined; } export function isContains (mixed : any, x : string) : mixed is string { return check.checkContains(mixed, x) === undefined; } export function isNoDuplicate (mixed : any) : mixed is string { return check.checkNoDuplicate(mixed) === undefined; } export function isNotAllWhitespace (mixed : any) : mixed is string { return check.checkNotAllWhitespace(mixed) === undefined; } export function isNonEmptyAndNotAllWhitespace (mixed : any) : mixed is string { return check.checkNonEmptyAndNotAllWhitespace(mixed) === undefined; } export function isMatch (mixed : any, regex : RegExp) : mixed is string { return check.checkMatch(mixed, regex) === undefined; } export function isEmail (mixed : any) : mixed is string { return check.checkEmail(mixed) === undefined; } export function isNotOneOf (mixed : any, arr : T[]) : mixed is string { return check.checkNotOneOf(mixed, arr) === undefined; } export function isBase64 (mixed : any) : mixed is string { return check.checkBase64(mixed) === undefined; } export function isJson (mixed : any) : mixed is string { return check.checkJson(mixed) === undefined; }