Fix GH sync compilation err from missing function

Merged Martin Lowe requested to merge malowe-master-patch-18045 into master

2 new methods added to handle org-wide projects didn't use the function keyword when defining functions, which only works in Typescript.

Merge request reports