Helpful
    Preparing search index...

    Function detokenize

    • Does replacement of interpolation, ${}, tokens in a string.

      Parameters

      • tokenized: ZOptional<string>

        The string that can contain interpolation tokens.

      • tokens: Record<string, ZOptional<string>>

        The tokens to replace.

      Returns string

      A detokenized string that replaces the tokens with the values in the token dictionary. If a value is missing in the token dictionary, then the tokens are preserved. If the value of a token is null or undefined explicitly, then any tokens in the tokenized string are removed for that value.