Interface FunctionKindOptions

interface FunctionKindOptions {
    enforceFunctionName: boolean;
    enforceInputParameterNames: boolean;
    enforceOutputParameterName: boolean;
    identifierPrefix: string;
    subtypeParameterChecking: TypeCheckStrategy;
    typeToInferForCallsOfFunctionsWithoutOutput: unknown;
}

Properties

enforceFunctionName: boolean
enforceInputParameterNames: boolean
enforceOutputParameterName: boolean
identifierPrefix: string

Will be used only internally as prefix for the unique identifiers for function type names.

subtypeParameterChecking: TypeCheckStrategy
typeToInferForCallsOfFunctionsWithoutOutput: unknown

If a function has no output type (e.g. "void" functions), this type is returned during the type inference of calls to these functions. The default value "THROW_ERROR" indicates to throw an error, i.e. type inference for calls of such functions are not allowed.