foundeo / cfdocs

Repository for the cfdocs.org site.
https://cfdocs.org/
Other
184 stars 344 forks source link

Closure type #521

Closed KamasamaK closed 7 years ago

KamasamaK commented 7 years ago

I've noticed some params such as one in arrayEach that has a type of Closure. The Lucee docs use the type function. ACF appears to only use function as the type name (see returnType in cffunction and type in cfargument), but also refers to them as closures in some places even naming the validation function isClosure. Ultimately, I think it should be function to match the type name in ACF.

pfreitag commented 7 years ago

Yes, I think function is the appropriate type name to use here.