I expect that RaycastResult.Instance will have the type of BasePart, or at least Instance as the name suggests. Instead, the type is any. You can see the issue in the code below.
Reproduction Steps
-- psuedo:
local result = workspace:Raycast(origin, direction, params)
if result then
result.Instance. --> No autocomplete here
result. --> Autocomplete for `RaycastResult` here
end