Skip to main content
Less oft-needed functions to manipulate Tokens.

Initializers


Static Functions


IsResolvable

Return whether the given object is an IResolvable object. This is different from Token.isUnresolved() which will also check for encoded Tokens, whereas this method will only do a type check on the given object.

ObjRequired

  • Type: object

Resolve

Resolves an object by evaluating all tokens and removing any undefined or empty objects or arrays. Values can only be primitives, arrays or tokens. Other objects (i.e. with methods) will be rejected.

ObjRequired

  • Type: object
The object to resolve.

OptionsRequired

Prefix key path components for diagnostics.

Reverse

Reverse any value into Resolvables, if possible.

XRequired

  • Type: object

ReverseList

Un-encode a Tokenized value from a list.

LRequired

  • Type: string[]

ReverseMap

Un-encode a Tokenized value from a map.

MRequired

  • Type: System.Collections.Generic.IDictionary< string, object >

ReverseNumber

Un-encode a Tokenized value from a number.

NRequired

  • Type: double

ReverseNumberList

Un-encode a Tokenized value from a list.

LRequired

  • Type: double[]

ReverseString

Un-encode a string potentially containing encoded tokens.

SRequired

  • Type: string

StringifyNumber

Stringify a number directly or lazily if it’s a Token. If it is an object (i.e., { Ref: ‘SomeLogicalId’ }), return it as-is.

XRequired

  • Type: double