This a slice from doubter/core/StringShape that contains only methods added by this package.

interface StringShape {
    ascii(options?: IssueOptions | Message): this;
    bic(options?: IssueOptions | Message): this;
    email(options?: Message | EmailOptions): this;
    fqdn(options?: Message | FQDNOptions): this;
    imei(options?: Message | IMEIOptions): this;
    isin(options?: IssueOptions | Message): this;
    luhn(options?: IssueOptions | Message): this;
    mime(options?: IssueOptions | Message): this;
    uuid(options?: Message | UUIDOptions): this;
}

Hierarchy

  • Pick<StringShape,
        | "ascii"
        | "bic"
        | "email"
        | "fqdn"
        | "imei"
        | "isin"
        | "luhn"
        | "mime"
        | "uuid">
    • StringShape

Plugin Methods

  • Check if the string is an ASCII string.

    Parameters

    Returns this

    The clone of the shape.

  • Check if the string is a BIC (Bank Identification Code) or SWIFT code.

    Parameters

    Returns this

    The clone of the shape.

  • Check if the string is an email.

    Parameters

    Returns this

    The clone of the shape.

  • Check if the string is a fully qualified domain name (e.g. domain.com).

    Parameters

    Returns this

    The clone of the shape.

  • Check if the string is an ISIN (stock/security identifier).

    Parameters

    Returns this

    The clone of the shape.

  • Check if the string is a UUID (Universally unique identifier).

    Parameters

    Returns this

    The clone of the shape.