withFuncType