says `A value cannot be used as a type. `, using an alias as intermediate fixes the issue <img width="858" height="517" alt="Image" src="https://github.com/user-attachments/assets/662ab182-063f-429c-b00d-456479a50f2f" />
says

A value cannot be used as a type., using an alias as intermediate fixes the issue