export type ExpressionType = "string" | "securestring" | "int" | "bool" | "object" | "secureobject" | "array" ; export function toValidExpressionType ( typeName ) { const lowered = ( typeName || "" ) . toLowerCase ( ) ; switch ( < ExpressionType > lowered ) { case "array" : case "bool" : case "int" : case "object" : case "secureobject" : case "securestring" : case "string" : return < ExpressionType > lowered ; default : return undefined ; } }