Type.ForFunction

语法

Type.ForFunction(signature as record, min as number) as type

关于

signature 创建 function typeReturnTypeParameters 的记录),再创建 min(调用函数所需的最少参数数目)。

示例 1

为需要使用 X 数字参数并返回数字的函数创建类型。

使用情况

Type.ForFunction([ReturnType = type number, Parameters = [X = type number]], 1)

输出

type function (X as number) as number

results matching ""

    No results matching ""