Consider a stored procedure GetEmployees which has a SELECT statement like
GetEmployees
SELECT
SELECT EMP_ID, EMP_NAME, EMP_EMAIL FROM EMPLOYEE
It is a standard feature. You have go to the mapping of the function import and change the result type to the custom type.