Typescript Join Array Php Functions And Their Types