Implement a function calculate_discounted_price(original_price: float, discount_percentage: float) -> float in the /app/ directory that calculates the discounted price of a given product based on its original price and the discount percentage.
Requirements:
The function should take two parameters:
original_price (float): The original price of the product, which must be greater than or equal to 0.
discount_percentage (float): The discount percentage to apply, which must be between 0 and 100 (inclusive).
The function should return the discounted price as a float, calculated using the formula:
[
\text{discounted price} = \text{original price} \times \left(1 - \frac{\text{discount percentage}}{100}\right)
]
If the original_price is 0, the function should return 0.
If the discount_percentage is less than 0 or greater than 100, the function should raise a ValueError with the message "Invalid discount percentage."
Ensure to include proper type hints for the function signature.
Example Cases:
calculate_discounted_price(100, 20) should return 80.0.
calculate_discounted_price(50, 0) should return 50.0.
calculate_discounted_price(200, 50) should return 100.0.
calculate_discounted_price(100, 150) should raise a ValueError with "Invalid discount percentage."
calculate_discounted_price(0, 50) should return 0.
Please ensure that the solution adheres to the requirements and explicitly handles the edge cases outlined.