TypeDesc
TypeDesc represents the serializable format of a CEL Type value.
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new TypeDesc(
typeName,params?,isTypeParam?):TypeDesc
Constructor describes a simple or complex type with parameters.
Parameters
Section titled “Parameters”typeName
Section titled “typeName”string
params?
Section titled “params?”TypeDesc[] = []
isTypeParam?
Section titled “isTypeParam?”boolean = false
Returns
Section titled “Returns”TypeDesc
Properties
Section titled “Properties”isTypeParam
Section titled “isTypeParam”isTypeParam:
boolean=false
params
Section titled “params”params:
TypeDesc[] =[]
typeName
Section titled “typeName”typeName:
string
Methods
Section titled “Methods”asCELType()
Section titled “asCELType()”asCELType(
tp):Type
AsCELType converts the serializable object to a CEL native Type value.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”specifierFormat()
Section titled “specifierFormat()”specifierFormat():
string
SpecifierFormat returns the short text representation of the type. e.g. “map<string, int>”.
Returns
Section titled “Returns”string
toString()
Section titled “toString()”toString():
string
Returns
Section titled “Returns”string
validate()
Section titled “validate()”validate():
Error|undefined
Validate validates the type configuration is well-formed.
Returns
Section titled “Returns”Error | undefined