Skip to content

EnvironmentFunction

Function represents the serializable format of a function and its overloads.

new EnvironmentFunction(name, overloads?): Function

Constructor creates a serializable function and overload set.

string

EnvironmentOverload[] = []

Function

description: string = ""


name: string


overloads: EnvironmentOverload[] = []

asCELFunction(tp): FunctionDecl

AsCELFunction converts the serializable form of the Function into a CEL environment declaration.

Provider

FunctionDecl


validate(): Error | undefined

Validate validates the function configuration is well-formed.

Error | undefined