Skip to content

TypeDesc

TypeDesc represents the serializable format of a CEL Type value.

new TypeDesc(typeName, params?, isTypeParam?): TypeDesc

Constructor describes a simple or complex type with parameters.

string

TypeDesc[] = []

boolean = false

TypeDesc

isTypeParam: boolean = false


params: TypeDesc[] = []


typeName: string

asCELType(tp): Type

AsCELType converts the serializable object to a CEL native Type value.

Provider

Type


specifierFormat(): string

SpecifierFormat returns the short text representation of the type. e.g. “map<string, int>”.

string


toString(): string

string


validate(): Error | undefined

Validate validates the type configuration is well-formed.

Error | undefined