@companion-module/base
    Preparing search index...

    Interface CompanionCommonCallbackContext

    Utility functions available in the context of an action/feedback

    interface CompanionCommonCallbackContext {
        parseVariablesInString(text: string): Promise<string>;
    }

    Hierarchy (View Summary)

    Index

    Methods

    • Parameters

      • text: string

        The text to parse

      Returns Promise<string>

      The string with variables replaced with their values

      Companion now handles this for you, you should no longer need to use this Parse and replace all the variables in a string Note: it is important to use this version when in a feedback, so that the feedback will react properly when the variables parsed change