Function hasMessageField

  • Checks if the given object has a message field of string type

    Parameters

    • obj: unknown

    Returns obj is {
        message: string;
    }