Emit Type of function and static function correctly in declaration file

Declaration file needs to always emit typeof function/static function instead of emitting signature