Functions
combinePath
Section titled “combinePath”Adds two paths and returns the result Correctly processes leading and trailing slashes
▸ combinePath(path1: string,path2: string): string
Parameters:
Section titled “Parameters:”- path1:
string - path2:
string-
Returns string
convertValue
Section titled “convertValue”Converts a value from one DataType to another
▸ convertValue(value: string,fromDataType: DataType,toDataType: DataType): string
Parameters:
Section titled “Parameters:”- value:
string - fromDataType:
DataType- the original data type - toDataType:
DataType- the data type we want to get
Returns string
linkTypeToStr
Section titled “linkTypeToStr”Converts a LinkType value to a string
▸ linkTypeToStr(type: LinkType): string
Parameters:
Section titled “Parameters:”- type: LinkType -
Returns string
parseOperatorFormat
Section titled “parseOperatorFormat”Parses the operator’s format string and returns a list of tokens
▸ parseOperatorFormat(operator: any): FormatToken[]
Parameters:
Section titled “Parameters:”- operator:
any-
Returns FormatToken[]
strToLinkType
Section titled “strToLinkType”Converts a string to a LinkType value
▸ strToLinkType(str: string): LinkType
Parameters:
Section titled “Parameters:”- str:
string-
Returns LinkType