Type.FunctionRequiredParameters

About

Returns a number indicating the minimum number of parameters required to invoke the a type of function.

Syntax

Type.FunctionRequiredParameters(#"type" as type) as number  

Examples

Type.FunctionRequiredParameters( type function () as any) equals 0  
Type.FunctionRequiredParameters( type function (x as number) as any) equals 1