Interface representing a helper object with utility methods.

interface HelperObject {
    Decrypt: ((text: string) => string);
    Encrypt: ((text: string) => string);
    IsValidEmail: ((email: string) => boolean);
}

Properties

Decrypt: ((text: string) => string)

Decrypts the provided text.

Type declaration

    • (text): string
    • Parameters

      • text: string

        The text to decrypt.

      Returns string

      The decrypted text.

Encrypt: ((text: string) => string)

Encrypts the provided text.

Type declaration

    • (text): string
    • Parameters

      • text: string

        The text to encrypt.

      Returns string

      The encrypted text.

IsValidEmail: ((email: string) => boolean)

Validates if the provided email is in a correct format.

Type declaration

    • (email): boolean
    • Parameters

      • email: string

        The email address to validate.

      Returns boolean

      true if the email is valid, otherwise false.