typeset seems to be obsolete according to my 'help typeset' :) 'declare -F' does the same job.