Implement a function calculate_area in a file called /app/solution.py that calculates the area of a rectangle. The function should take two parameters: length (a positive float) and width (a positive float), representing the dimensions of the rectangle.
Requirements:
The function should return the computed area as a float (result = length * width).
If either length or width is not a positive number, the function should raise a ValueError with the message "Length and width must be positive numbers."
Ensure that the function can accept and correctly handle input values up to 10,000 (both length and width).
Include type hints for the function parameters and return type.
Example:
calculate_area(5.0, 10.0) should return 50.0
calculate_area(3.5, 2.7) should return 9.45
calculate_area(-1, 5) should raise ValueError: "Length and width must be positive numbers."
Please ensure that the implementation conforms to these specifications so that the provided tests will pass.