/** * A String node. This will validate the value it is connected with and render it down * * @module StringProp */ /** imports **/ import BaseProp from "./BaseProp"; /** * A String property. This will validate the value it is connected with and render it down */ export default class StringProp extends BaseProp { /** * @param {any} node The node being managed * @param {string} name The name of the node */ constructor(node: any, name: string); /** * Minimum string length */ minLength?: number; /** * Maximum string length */ maxLength?: number; /** * Regular Expression to validate against */ matches?: RegExp; /** * Checks if a string is a boolean (e.g. is "true" or "false"). */ isBooleanString?: boolean; /** * Checks if a string is a complete representation of a date (e.g. "2017-06-07T14:34:08.700Z", "2017-06-07T14:34:08.700 or "2017-06-07T14:34:08+04:00"). */ isDateString?: boolean; /** * Checks if a string is a number. */ isNumberString?: boolean; /** * Checks if the string contains the seed. */ contains?: string; /** * Checks if the string not contains the seed. */ notContains?: string; /** * Checks if the string contains only letters (a-zA-Z). */ isAlpha?: boolean; /** * Checks if the string contains only letters and numbers */ IsAlphanumeric?: boolean; /** * Checks if the string contains ASCII chars only. */ isAscii?: boolean; /** * Checks if a string is base64 encoded. */ isBase64?: boolean; /** * Checks if the string is an email. */ isEmail?: boolean; /** * Checks if the string is a fully qualified domain name (e.g. domain.com). */ isFQDN?: boolean; /** * Checks if the string is an IP address */ isIp?: string; /** * Checks if the string is a valid ISO 8601 date. */ isIso8601?: boolean; /** * Checks if the string is valid JSON. */ isJson?: boolean; /** * Checks if the string is lowercase. */ isLowercase?: boolean; /** * Checks if the string is uppercase. */ isUppercase?: boolean; /** * Checks if the string is a valid hex-encoded representation of a MongoDB ObjectId. */ isMongoId?: boolean; /** * Checks if the string is an url. */ isUrl?: boolean; /** * Checks if the string is a UUID (version 3, 4 or 5). */ isUuid?: boolean; /** * Checks if the string is a valid representation of military time in the format HH:MM. */ isMilitaryTime?: boolean; /** * The template to render this type */ readonly prop: string; /** * Returns a string array of needed imports */ imports(): string[]; /** * Things like extra classes and enums that need to be at the top level of the module */ headers(): string[]; } //# sourceMappingURL=StringProp.d.ts.map