Returns a type that represents functions with specific parameter and return type constraints.
function (signature as record, min as number) as type
Description
Creates a function type from signature, a record of ReturnType and Parameters, and min, the minimum number of arguments required to invoke the function.
Category
Type
Examples
Creates the type for a function that takes a number parameter named X and returns a number.
1
Type.ForFunction([ReturnType = type number, Parameters = [X = type number]], 1)